


Once you've finished setting up the native build environment, there are two options for making the right copy of adb available to Create React Native App: Using Android Studio's adb We also recommend installing Genymotion as your Android emulator.

Requires an installation of Android build tools (see React Native docs for detailed setup).

Like npm start, but also attempts to open your app on a connected Android device or emulator. Like npm start, but also attempts to open your app in the iOS Simulator if you're on a Mac and have it installed. To do so, you can pass the -reset-cache flag to the start script: Sometimes you may need to reset or clear the React Native packager's cache. It will reload if you save edits to your files, and you will see build errors and logs in the terminal. Open it in the Expo app on your phone to view it. Unlike dependency installation, command running syntax is identical for Yarn and NPM at the time of this writing. If Yarn was installed when the project was initialized, then dependencies will have been installed via Yarn, and you should probably use it to run these commands as well. See the versioning guide for up-to-date information about package version compatibility. Upgrading to a new version of React Native requires updating the react-native, react, and expo package versions, and setting the correct sdkVersion in app.json. Updating the react-native-scripts dependency of your app should be as simple as bumping the version number in package.json and reinstalling your project's dependencies. You should only need to update the global installation of create-react-native-app very rarely, ideally never.
