This project was bootstrapped with Create React Native App.
Below you'll find information about performing common tasks.
Table of Contents
- Updating Create React Native App and React Native
- Available Scripts
- Writing and Running Tests
- Tips and Tricks
Updating Create React Native App and React Native
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.
Upgrading to a new version of React Native requires updating the
expo package versions, and setting the correct
app.json. See the versioning guide for up-to-date information about package version compatibility.
Runs your app in development mode.
Open it in the Expo app on your phone to view it. It will reload if you save edits to your files, and you will see build errors and logs in the terminal.
Runs the jest test runner on your tests.
yarn test -- --watch
Runs the jest test runner on your tests in watch mode.
yarn start, but also attempts to open your app in the iOS Simulator if you're on a Mac and have it installed.
yarn start, but also attempts to open your app on a connected Android device or emulator. Requires an installation of Android build tools (see React Native docs for detailed setup).
Writing and Running Tests
Tips and Tricks
- If you have a local network the prevents your phone from accessing the address that is printed when running the packager, you can often work around this issue by "tethering" your computer to your phone's internet connection. Some phones call this feature "mobile hotspot." While it's very convenient, if you have a data plan where you pay for data transfer you should be careful when using this feature, especially when installing dependencies from NPM.