Author: Carlos Vicens
Level: Intermediate
Technologies: Javascript, React Native, RHMAP
Summary: A basic React Native client side template with RHMAP.
Target Product: RHMAP
Product Versions: Pending
Source: https://github.com/cvicens/quickstart-react-native
Prerequisites:
- CocoaPods (for iOS)
- iOS 8, 9, 10 SDK supported configuration
- react-native-cli: 2.0.1
- react-native: 0.42.3
- rct-fh : 0.0.14+ documentation
To install React Native (and its CLI), please go to Getting Started
- Install node (v6+)
- Install React Native CLI
npm install -g react-native-cli
- Test your installation
$ react-native init TestProject
$ cd TestProject
$ react-native run-ios
This application is a basic React Native client side template, it should be used in combination with the HelloWorld cloud app.
- Create a new iOS Objective-C Application in your RHMAP project
- Open the 'Editor' and copy the contents of ./helloworld-ios-app/fhconfig.plist
Edit ios/fhconfig.plist
and paste the contents copied in the previous step
- npm install or yarn install
- Run
pod install
inside the./ios
folder - Build and run locally. This should start the iOS simulator, deploy the app and run it.
react-native run-ios
As we have stated before this template depends on rct-fh
the repository of this npm module is here.
To update the SDK:
- change the version in
package.json
- run
npm install