react-native-jack-sqlite-library

Sqlite React Native Library

Usage no npm install needed!

<script type="module">
  import reactNativeJackSqliteLibrary from 'https://cdn.skypack.dev/react-native-jack-sqlite-library';
</script>

README

react-native-jack-sqlite-library

Getting started

$ npm install react-native-jack-sqlite-library --save

Mostly automatic installation

$ react-native link react-native-jack-sqlite-library

Manual installation

Android

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

Usage

import RNJackSqliteLibrary from 'react-native-jack-sqlite-library';

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