mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-09 13:14:47 +00:00
* sk-react-framework: (27 commits) Change RealmReact to be a dynamic framework finish Array to List rename RJSArray -> RJSList move property getters to object store code move List class to its own file ObjectArray -> List Add Notification constructor and destructor Small improvement to notifications test RJSException no longer requires JS strings Protect realm and callback from GC in addNotification Add comments pr fixes minimal tests for migrations Check for NaN inside RJSValidatedValueToNumber allow running all tests at the same path by invalidating all cached realm paths between test runs Native methods should convert to numbers/bools Out of bounds getters for Results return undefined Out of bounds list item getters return undefined Consolidate code that verifies array index bounds Add list item setters in JS ...
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 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.
Description
Realm is a mobile database: an alternative to SQLite & key-value stores
https://realm.io
Languages
JavaScript
45.9%
C++
38.4%
Objective-C
3.9%
Shell
3.3%
Objective-C++
3.2%
Other
5.3%