- React Native environment setup. Consider creating a default react native project to make sure your environment is setup correctly
- Getting started
- Troubleshooting
- Clone the repo
- Run
npm install
to install javascript dependencies - Run
npx pod-install ios
to install ios dependencies
First, you will need to start Metro, the JavaScript bundler that ships with React Native.
Run the following command from the root project route:
npm start
Let Metro Bundler run in its own terminal. Open a new terminal from the root of your React Native project. Run the following command to start your Android or iOS app:
npm run android
npm run ios
- The repo is organized so that application specific code is in the
/src
directorycomponents
- Reusable componentsnavigation
- Main Navigation codescreens
- Different pages or unique screens in an apputils
- Reusable utilities
- General changes should usually be reflected live, but in some cases you'll need to reload.
Type
r
in the metro process to reload