Skip to content

ali322/rn-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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