• macOS and Linux setup: make sure to click on "Building Projects with Native Code" and follow the instructions
If you didn't install react-native-cli, you can do it this way
42sh> npm install -g react-native-cli
42sh> git clone git@github.com:kgosse/sharedagendas.git
42sh> cd sharedagendas
42sh> npm i
42sh> react-native link
From project dir, run:
-
Build and run (this will start a simulator if not already started)
react-native run-ios
This would also start a packager if not already started
-
Set your Simulator to live reload changes
⌘
+d
(cmd
+d
) =>Enable Live Reload
-
Start an emulator or just connect an android phone (with an usb cable)
-
Build and run
react-native run-android
This would also start a packager if not already started
-
Set your Emulator to live reload changes
⌘
+m
(cmd
+m
) =>Enable Hot Reloading
To open packager manually, from project dir run:
react-native start