Last active
July 3, 2024 14:22
-
-
Save arnoldc/58872d440a417fdcc360ddb746f468f4 to your computer and use it in GitHub Desktop.
[React Native] debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Trigger menu for android emulator | |
- adb shell input keyevent 82 | |
- or command m | |
index.android.bundle issue | |
- mkdir android/app/src/main/assets | |
- npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res | |
- react-native run-android | |
To log ios | |
npx react-native log-ios | |
Android | |
# if using an emulator | |
adb logcat | |
# if using a real device | |
adb devices | |
adb -s "DEVICE_ID" logcat | |
React DevToos | |
npx react-devtools |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment