Realm is a mobile database: an alternative to SQLite & key-value stores
https://realm.io
33edd04897
Test/fix setting all primitive types to null/undefined |
||
---|---|---|
ReactNative | ||
RealmJS.xcodeproj | ||
examples | ||
lib | ||
src | ||
tests | ||
vendor | ||
.eslintrc | ||
.gitignore | ||
.gitmodules | ||
README.md |
README.md
RealmJS
RealmJS contains Realm bindings for integrating with mobile apps built using javascript frameworks such as ReactNative and PhoneGap.
RealmJS uses submodules so you need to run git submodule update --init --recursive
in the realm-js root directory before running any examples or including the project in your app.
ReactNative Example
Make sure your environment is set up to run react native applications. Follow the instructions here https://facebook.github.io/react-native/docs/getting-started.html to the point you have installed the react-native-cli.
The ReactNative sample project is in the examples/ReactExample
directory. 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. - Drag
RealmJS.xcodeproj
into theLibraries
folder in your project. - In the target for your application, add
libRealmReact.a
in theLink Binary with Library
build phase. - Use Realm in your app.
- Drag
RealmJS.framework
from theProducts
directory underRealmJS.xcodeproj
into theEmbedded Libraries
section in theGeneral
tab for you app's target settings. This bundles the library with your app.