项目作者: ali322

项目描述 :
yet another React-Native AsyncStorage wrapper
高级语言: JavaScript
项目地址: git://github.com/ali322/rn-storage.git
创建时间: 2016-11-23T03:36:31Z
项目社区:https://github.com/ali322/rn-storage

开源协议:

下载


RN-Storage CircleCI npm version

NPM

React-Native AsyncStorage wrapper

Install

  1. npm install rn-storage --save

Useage

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

more instructions refer to API

Todo

  • fix some unknow bugs
  • add more api documents

License

MIT License