Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ali322/rn-storage
yet another React-Native AsyncStorage wrapper
https://github.com/ali322/rn-storage
asyncstorage localstorage react react-native
Last synced: 10 days ago
JSON representation
yet another React-Native AsyncStorage wrapper
- Host: GitHub
- URL: https://github.com/ali322/rn-storage
- Owner: ali322
- Created: 2016-11-23T03:36:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-06T09:36:30.000Z (almost 8 years ago)
- Last Synced: 2024-10-11T09:14:41.456Z (about 1 month ago)
- Topics: asyncstorage, localstorage, react, react-native
- Language: JavaScript
- Homepage:
- Size: 593 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
RN-Storage [![CircleCI](https://circleci.com/gh/ali322/rn-storage.svg?style=svg)](https://circleci.com/gh/ali322/rn-storage) [![npm version](https://badge.fury.io/js/rn-storage.svg)](https://badge.fury.io/js/rn-storage)
===
[![NPM](https://nodei.co/npm/rn-storage.png)](https://nodei.co/npm/rn-storage/)React-Native AsyncStorage wrapper
Install
===```javascript
npm install rn-storage --save
```Useage
===```javascript
let storage = new Storage()
storage.registerSchema(["example"])//mount to global namespace for all the scene component
global.storage = storagevar exampleEntity = storage.entity("example")
exampleEntity.findAll().then(ret=>{
//your bussiness code come here
})
```more instructions refer to [API](./API.md)
## Todo
- fix some unknow bugs
- add more api documents## License
[MIT License](http://en.wikipedia.org/wiki/MIT_License)