@hyela_fnc/react-native-spatial

2.0.6 • Public • Published

react-native-spatial

Getting started

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

Usage

import RNSpatial from '@hyela_fnc/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.6 :

  • Change call plugin Geo-Spatialite-Android

About the others versions

Version 2.0.5 :

  • Change repository

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

Package Sidebar

Install

npm i @hyela_fnc/react-native-spatial

Weekly Downloads

15

Version

2.0.6

License

MIT

Unpacked Size

81.4 kB

Total Files

17

Last publish

Collaborators

  • hyela_fnc