DHBW Lörrach Campus App
Assuming that React Native is already installed (see http://facebook.github.io/react-native/docs/getting-started.html), follow these steps:
- clone project with git (
git clone firstname.lastname@example.org:DHBWLoerrach/CampusApp.git)
- in terminal, change to CampusApp directory (
- install npm packages (
- copy env.example.js to env.js (here you might need to fill in some data)
Launch app in iOS simulator (Mac only)
XCode needs to be installed.
Open terminal, cd into CampusApp directory and open iOS project in XCode:
In XCode, build the project (
Product > Build oder
CMD-B). Once finished, XCode can be quit. This has to be done only once.
Now switch back to the terminal and run
Launch app in Android simulator
Please refer to http://facebook.github.io/react-native/docs/getting-started.html
Launch app on Android device
Make sure Android device is in debug mode (enable developer options) and connect device via USB.
To access the development server from the Android device you need to use 'adb reverse':
adb -d reverse tcp:8081 tcp:8081
Open terminal/console, cd into CampusApp directory and run
Live Reload and Debugging
Please refer to the React Native documentation to learn how about live/hot reloading and debugging options (http://facebook.github.io/react-native/docs/debugging.html)