Update README for new project setup steps
This commit is contained in:
parent
25cfb68779
commit
a0b1cb671a
|
@ -12,8 +12,8 @@ The ReactNative example project is in the `examples/ReactExample` directory. You
|
|||
## ReactNative Project Setup
|
||||
- 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 `RealmReact.framework` from the `Products` directory under `RealmJS.xcodeproj` into the `Embedded Binaries` section in the `General` tab for your app's target settings. This bundles the library with your app.
|
||||
- In the `Build Phases` tab for your app's target settings, add `RealmReact.framework` in the `Target Dependencies` and `Link Binary with Library` build phases.
|
||||
- Drag `RealmReact.framework` from the `Products` directory under `RealmJS.xcodeproj` into the `Embedded Binaries` section in the `General` tab for your app's target settings. Make sure the checkbox under `Code Sign On Copy` is **not checked** because having it checked will cause issues when trying to run your app on a device.
|
||||
- In the `Build Phases` tab for your app's target settings, add `RealmReact.framework` to the `Link Binary with Library` build phases.
|
||||
- In your app's `package.json` file, add the `realm` dependency with a path to the `realm-js/lib` folder like this: `"realm": "file:path/to/realm-js/lib"` (symlinks are not yet supported by the React Native packager, see [issue #637](https://github.com/facebook/react-native/issues/637)).
|
||||
- You can now `require('realm')` in your app's JS to use Realm!
|
||||
|
||||
|
|
Loading…
Reference in New Issue