rn-storage
v1.0.13
Published
react-native AsyncStorage wrapper
Downloads
1
Readme
RN-Storage
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