react-native-agri-sqlite
v1.0.2
Published
## Getting started
Downloads
3
Readme
react-native-agri-sqlite
Getting started
$ npm install react-native-agri-sqlite --save
Mostly automatic installation
$ react-native link react-native-agri-sqlite
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNAgriSqlitePackage;
to the imports at the top of the file - Add
new RNAgriSqlitePackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-agri-sqlite' project(':react-native-agri-sqlite').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-agri-sqlite/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-agri-sqlite')
Usage
import RNAgriSqlite from 'react-native-agri-sqlite';
// TODO: What to do with the module?
RNAgriSqlite;