1.0.4 • Published 5 years ago
react-native-simple-db v1.0.4
Simple react-native JSON database
With this lib you can:
-Store JSON files
-Get JSON files
Installation
To install react-native-simple-db run:
$ npm install react-native-simple-db
Dependencies
To use react-native-simple-db you need to be in a react-native app an have this lib:
@react-native-community/async-storage
Using react-native-simple-db
To load react-native-simple-db lib :
const sdb = require('react-native-simple-db');
To load JSON files :
await sdb.getData(JSON_PATH);
To save JSON files :
sdb.storeData(JSON_PATH, JSON_CONTENT);
License
MIT