It's just a playground. It's my first RN app where I test different ideas.
As a backend I used pouchdb-server: https://github.com/pouchdb/pouchdb-server
- Use react-intl instead of react-native-i18n: formatjs/formatjs#600 (comment)
- Create own UI components instead of native-base,
- Use JWT for Auth insteada of Basic Auth,
- Add support for updates eg react-native-auto-updater, CodePush
- clone
- npm install
- delete
node_modules/pouch-redux-middleware/.babelrcfile
- Run
adb reverse tcp:8081 tcp:8081 - Run
react-native run-android - Run
Alt+Shift+arrow up for remote monitoring in Redux Devtools
For redux debugging open Redux DevTools Extension in Chrome devtools and use shift+alt+arrow up (Cmd+Ctrl+Arrow up on Mac) to open remote debugging window.
- Make sure your laptop and your phone are on the same Wi-Fi network.
- Open your React Native app on your device. You can do this the same way you'd open any other app.
- You'll see a red screen with an error. This is OK. The following steps will fix that.
- Open the Developer menu by shaking the device or running
adb shell input keyevent 82from the command line. - Go to Dev Settings.
- Go to Debug server host for device.
- Type in your machine's IP address and the port of the local dev server (e.g. 10.0.1.1:8081). On Mac, you can find the IP address in System Preferences / Network. On Windows, open the command prompt and type ipconfig to find your machine's IP address (more info).
- Go back to the Developer menu and select Reload JS.
You can get console logs without chrome dev tools. Just run in cmd react-native log-android
https://facebook.github.io/react-native/docs/upgrading.html
later: react-native link react-native-vector-icons