React Native Cheat Sheet

Accessing console logs

  • react-native log-ios
  • react-native log-android

xcrun simctl list devices

  • react-native run-ios –simulator “iPhone 8”
  • react-native run-android

Sometimes you may need to reset or clear the React Native packager’s cache. To do so, you can pass the –reset-cache flag to the start script:

  • npm start – –reset-cache
  • yarn start – –reset-cache