@mvits/react-native-spatial

2.0.5 • Public • Published

react-native-spatial

Getting started

  1. Run npm install @mvits/react-native-spatial --save

Usage

import RNSpatial from '@mvits/react-native-spatial';

// open connection
let dbParams = {
  dbName: this.name + '.sqlite'
};

RNSpatial.connect(dbParams)
    .then(() => {
		// execute query
        return RNSpatial.executeQuery('SELECT * FROM table');
	})
	.then(response => {
		let columns = response.data;
		// do your work
	})
	.catch(err => {
		console.error(err);
	});

// close connection
RNSpatial.close()
	.then(() => {})
	.catch(err => {
		console.error(err);
	});

About this current version

Version 2.0.5 :

  • Change call plugin Geo-Spatialite-Android

About the others versions

Version 2.0.4 :

  • Change dependencies package.json

Version 2.0.3 :

  • Fixed error publish in npm

Version 2.0.2 :

  • Add support to json extension JSON1 Extension
  • Add support sdk android 19 in architecture: armeabi-v7a, x86, arm64-v8a, x86_64

Version 2.0.1:

  • Add support for send a object to connect function and add functionality for create db in local path(Only External Storage Directory).

Version 2.0.0:

  • Version tested and funtional.
  • Implement library Geo-Spatialite-Android (v1.0.0)
  • Implement spatialite version 4.5.0

Github Repository

Project is a fork from this project: https://github.com/NeliHarbuzava/react-native-spatial.git

Initial project this: https://github.com/vinuvijay7692/react-native-spatial.git

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.52latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.52
2.0.40
2.0.30
2.0.20
2.0.10
2.0.00

Package Sidebar

Install

npm i @mvits/react-native-spatial

Weekly Downloads

2

Version

2.0.5

License

MIT

Unpacked Size

81.2 kB

Total Files

17

Last publish

Collaborators

  • goduver