Project to track the DrawBridges status (up/down)
- Run
- Enter the project folder
- connect your device using usb debug mode or a Virtual Device.
- react-native run-<android/ios>
- Open on your device
- using devTools link
- Open the DevTools url, something like:
Expo DevTools is running at http://localhost:19002
- press press run on Android Device/Simulator
- Open the DevTools url, something like:
- using devTools link
- install:
- yarn global add react-devtools
- usefull commands:
- use toggle inspector (in app)
- remote JS debugging
- react-devtools and Ctrl Shift I on Windows opened URL
- adb shell input keyevent 82
(send the options to the phone or shake)
- adb logcat *:S ReactNative:V ReactNativeJS:V
- react-native log-ios
- react-native log-android
- react-devtools
- adb shell am start -n packagename/.MainActivity
(reopen the app)
- adb shell input text "word"
usefull when retype from pc
- npm start -- --reset-cache
reset cache
- adb reverse tcp:8081 tcp:8081
force the reverse connection from phone-pc
- inside android run ./gradlew assembleRelease
- release commands:
- cd android && ./gradlew assembleRelease
- output /android/app/build/outputs/apk/release/app-release.apk
- react-native run-android --variant=release
for more: https://facebook.github.io/react-native/docs/debugging