Update README.md

This commit is contained in:
Ari Lazier 2015-08-13 10:39:51 -07:00
parent bf11885df8
commit 0c3e5fb65e
1 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,10 @@
RealmJS contains Realm bindings for integrating with mobile apps built using javascript frameworks such as ReactNative and PhoneGap. RealmJS contains Realm bindings for integrating with mobile apps built using javascript frameworks such as ReactNative and PhoneGap.
## ReactNative Setup ## ReactNative Example
There is a ReactNative sample project in `examples/ReactExample`. You must run `npm install` in this directory before running the example for the first time.
## ReactNative Project Setup
- Create a new ReactNative project `react-native init <project-name>` and open the generated XCode project. - Create a new ReactNative project `react-native init <project-name>` and open the generated XCode project.
- Drag `RealmJS.xcodeproj` into the `Libraries` folder in your project. - Drag `RealmJS.xcodeproj` into the `Libraries` folder in your project.
- In the target for your application, add `libRealmReact.a` in the `Link Binary with Library` build phase. - In the target for your application, add `libRealmReact.a` in the `Link Binary with Library` build phase.