Skip to content

File-based embedded data store for react-native, fork from nedb.

License

Notifications You must be signed in to change notification settings

wuxushun/react-native-nedb

Repository files navigation

react-native-nedb

Getting started

$ npm install react-native-nedb --save

Mostly automatic installation

$ react-native link react-native-nedb

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-nedb and add RNNedb.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNNedb.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.nedb.RNNedbPackage; to the imports at the top of the file
  • Add new RNNedbPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-nedb'
    project(':react-native-nedb').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-nedb/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-nedb')
    

Usage

import RNNedb from 'react-native-nedb';

// TODO: What to do with the module?
RNNedb;

About

File-based embedded data store for react-native, fork from nedb.

Resources

License

Stars

Watchers

Forks

Packages

No packages published