brew install node watchman npm install -g react-native-cli react-native init projName
Access the developer menu:
- by shaking your device
- Command + D when running in the iPhone Simulator, or Command + M when running in an Android emulator.
Reloading JS: Command + R in the iOS Simulator, or press R twice on Android emulators. wcfNote: press these in the simulator, not in the host system.
Debug on Windows
- Enable "Debug JS Remotely" on emulator by clicking Ctrl + m.
- Open http://localhost:8081/debugger-ui in Chrome.
- Add "debugger" in js codes. Ctrl+m and click "Reload".
Use console.log, console.warn etc. SO: how to do logging in RN.
# As of React Native 0.29 you can simply run the following to see logs in the console: react-native log-ios react-native log-android