rn-storage

1.0.13 • Public • Published

RN-Storage CircleCI npm version

NPM

React-Native AsyncStorage wrapper

Install

npm install rn-storage --save

Useage

let storage = new Storage()
storage.registerSchema(["example"])
 
//mount to global namespace for all the scene component
global.storage = storage
 
var exampleEntity = storage.entity("example")
 
exampleEntity.findAll().then(ret=>{
    //your bussiness code come here
})

more instructions refer to API

Todo

  • fix some unknow bugs
  • add more api documents

License

MIT License

Readme

Keywords

Package Sidebar

Install

npm i rn-storage

Weekly Downloads

1

Version

1.0.13

License

MIT

Last publish

Collaborators

  • alichen