App to demonstrate systems code in React
- Install the React Native dev environment
(Not Expo - use the full React Native CLI Quickstart and then iOS & Android guide)
- Create iOS and Android build environments
- Run via package.json
npm start
npm android
To get this to work you'll need Twitter API keys. Go to the Twitter developer dashboard to generate some.
Try these out by setting the values in a file .env in the root of where this project is checked out, like so:
BEARER_TOKEN=XXXXXXXXXXXXXThen run ./curl.sh to try some Twitter API calls. The package.json also has a script to run that.
Where there XXXX is something like AAAA... - the actual Twitter API bearer token.
The idea of this app is to implement a REST app that is not a "naive implementation". See this great video (even tho' its from 2010) by Android team members talking about "in memory" REST apps.
It also demonstrates:
- Loose coupling
- Use of events
- Using plain singletons instead of Redux
- Repository pattern
- Avoiding React code outside of the UX
- Uses
react-native-navigationby Wix - a "more native" implementation
See this comparison article - tl;dr - if you're used to web it will allow you to turn your "mobile app" into a horrible react mess by wrapping the whole app.
- Not finished. Needs work.
