Realm is a mobile database: an alternative to SQLite & key-value stores https://realm.io
Go to file
Scott Kyle 18f97b6ec1 Always set Access-Control-Allow-Origin on response
Error responses were not having this set, which obscured the true error from the client.
2015-10-15 03:01:38 -07:00
ReactNative Always set Access-Control-Allow-Origin on response 2015-10-15 03:01:38 -07:00
RealmJS.xcodeproj close to working test harness 2015-10-14 18:52:55 -07:00
examples Change RealmReact to be a dynamic framework 2015-10-14 02:05:02 -07:00
lib Properly serialize args to create Realm through RPC 2015-10-15 03:00:13 -07:00
src Properly serialize args to create Realm through RPC 2015-10-15 03:00:13 -07:00
tests close to working test harness 2015-10-14 18:52:55 -07:00
vendor Add GCDWebServer as a submodule at version 3.2.7 2015-10-07 17:36:22 -07:00
.gitignore Add some Node things to gitignore 2015-10-07 17:08:30 -07:00
.gitmodules Add GCDWebServer as a submodule at version 3.2.7 2015-10-07 17:36:22 -07:00
README.md Update README.md 2015-09-04 10:11:11 -07:00

README.md

RealmJS

RealmJS contains Realm bindings for integrating with mobile apps built using javascript frameworks such as ReactNative and PhoneGap.

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 the Libraries folder in your project.
  • In the target for your application, add libRealmReact.a in the Link Binary with Library build phase.
  • Use Realm in your app.
  • Drag RealmJS.framework from the Products directory under RealmJS.xcodeproj into the Embedded Libraries section in the General tab for you app's target settings. This bundles the library with your app.