react-native

A framework for building native apps with React.

TLDR

Initialize a new React Native project in a directory of the same name

$ react-native init [project_name]
copy


Start the metro bundler
$ react-native start
copy


Start the metro bundler with a clean cache
$ react-native start --reset-cache
copy


Build the current application and start it on a connected Android device or emulator
$ react-native run-android
copy


Build the current application and start it on an iOS simulator
$ react-native run-ios
copy


Build the current application in release mode and start it on a connected Android device or emulator
$ react-native run-android --variant=[release]
copy


Start logkitty and print logs to stdout
$ react-native log-android
copy


Start tail system.log for an iOS simulator and print logs to stdout
$ react-native log-ios
copy

Copied to clipboard