Spatialite package for React Native.
npm install react-native-spatial
$ npm install react-native-spatial --save
$ react-native link react-native-spatial
Libraries ➜ Add Files to [your project's name]
node_modules ➜ react-native-spatial and add RNSpatial.xcodeproj
libRNSpatial.a to your project's Build Phases ➜ Link Binary With Libraries
Cmd+R)
android/app/src/main/java/[...]/MainActivity.java
import com.reactlibrary.RNSpatialPackage; to the imports at the top of the file
new RNSpatialPackage() to the list returned by the getPackages() method
android/settings.gradle:
include ':react-native-spatial'
project(':react-native-spatial').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-spatial/android')
`
3. Insert the following lines inside the dependencies block in android/app/build.gradle:
`
compile project(':react-native-spatial')
`
Usage
`javascript
import RNSpatial from 'react-native-spatial';
// TODO: What to do with the module?
RNSpatial;
``