Running the application
Easy way
Open simulators and
npm start
Troubleshoot
When compiling the native dependencies, you may need to reset the build cache. Just run
npm start -- --reset-cache.Failed to start daemon error
error: could not install *smartsocket* listener: Address already in use ADB server didn't ACK * failed to start daemon *https://github.com/facebook/react-native/issues/8401#issuecomment-344628512
iOS Environment
- Open XCode
- File > Open > ios/ForestWatcher.xcworkspace
- Run
Android Environment
- Open Android Studio
- Select
Open an existing Android Studio Projectchoose/androidfolder. - Create and fill
.envfile. (See Environment Variables) - Run
- Install SDK platform, Build Tools and sync projects as asked.
- If you haven't already generated a signing key/keystore do it now. (How to generate a keystore)
- Run again
React Debugger
- Install react debugger: https://github.com/jhen0409/react-native-debugger
- Launch it from within the simulator and select Debug JS Remotely
Transifex API scripts
- To push the source file (EN):
npm run transifex:push - To pull translation files (ES, FR, ID, PT):
npm run transifex:pull