Installation
Prerequisite:
The first step to getting started is to set up your development environment according to the React Native guide. Just follow the installation instructions and you'll be ready to begin coding!
Create New Project
To start a new React Native project, use the init command from the CLI and choose the desired template by running the following command:
>_ terminal
npx react-native init APP_NAME --template @mindinventory/react-native-boilerplate
Get the project up and running
Once you've installed everything needed, follow these steps to launch the project:
- To start the Metro bundler, run
yarn start
in a separate terminal window. - Use
yarn <platform>
to start the app on your chosen platform (e.g.,yarn android
oryarn ios
). Remember to either run a simulator or connect a real device for testing.