Make sure to have npm and node install! https://nodejs.org/en/
Now, we can install react-native globally on your system if you don't have it already:
npm install -g react-native-cli
- 1.1)
git clone https://github.com/HackMerced/ReactNative-Workshop.git
- 1.2)
cd ReactNative-Workshop
- cd into your newly created project directory. - 1.3) Install NPM packages with your package manager of choice - i.e run
yarn
ornpm install
- 2.1) Start the react native packager, run
yarn run start
ornpm start
from the root of your project. - 2.2) [iOS] Build and run the iOS app, run
npm run ios
oryarn run ios
from the root of your project. The first build will take some time. This will automatically start up a simulator also for you on a successful build if one wasn't already started. - 2.3) [Android] If you haven't already got an android device attached/emulator running then you'll need to get one running (make sure the emulator is with Google Play / APIs). When ready run
npm run android
oryarn run android
from the root of your project.