To give it a try:
- Install cocoapods if you haven't already (
gem install cocoapods
should do) - In the iOS folder run
pod install
- Install watchman (e.g.
brew install watchman
) - Run
npm install
in the same directory as this readme. - Open
iOS/ReactMeet.xcworkspace
- Run (use a simulator)
Things to watch out for:
- react-native expects to be able to run a server on port
8081
- watch out for that failing to start because you have something else running. - "Refresh" in the simulator (command+r) will cause the app to crash.
- To run the app on your device open
AppDelegate.m
and findlocalhost
and replace it with your the IP address of your machine (making sure your device can reach that IP!)
To make a build that will run on your device without being able to connect to your computer:
- Run
npm run build
in the same directory as this readme. - If you've commented out the line
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
now is the time to uncomment it. - Build & Run on a device to make sure rntb launch correctly in this build mode.
- Archive, and then export to distribute via your desired mechanism.