2
2
3
3
## js-data-asyncstorage [ ![ bower version] ( https://img.shields.io/bower/v/js-data-asyncstorage.svg?style=flat-square )] ( https://www.npmjs.org/package/js-data-asyncstorage ) [ ![ npm version] ( https://img.shields.io/npm/v/js-data-asyncstorage.svg?style=flat-square )] ( https://www.npmjs.org/package/js-data-asyncstorage ) [ ![ Circle CI] ( https://img.shields.io/circleci/project/js-data/js-data-asyncstorage/master.svg?style=flat-square )] ( https://circleci.com/gh/js-data/js-data-asyncstorage/tree/master ) [ ![ npm downloads] ( https://img.shields.io/npm/dm/js-data-asyncstorage.svg?style=flat-square )] ( https://www.npmjs.org/package/js-data-asyncstorage ) [ ![ License] ( https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square )] ( https://github.com/lukasreichart/js-data-asyncstorage/blob/master/LICENSE )
4
4
5
- react-native AsyncStorage adapter for [ js-data] ( http://www.js-data.io/ ) .
5
+ [ js-data] ( https://github.com/js-data/js-data ) is a very sophisticated data handling library. I'am currently
6
+ developing for [ react-native] ( https://facebook.github.io/react-native/ ) and wanted
7
+ to unleash the power of js-data on react-native, so I built this adapter which uses react-native's ``` AsyncStorage ```
8
+ class, instead of a browsers localstorage.
9
+
10
+ Disclaimer: This is the first version of this adapter. Although the tests are passing there
11
+ may be still some bugs hidden somewhere. If you find any, I'd love to hear from you.
6
12
7
13
### API Documentation
8
14
[ DSAsyncStorageAdapter] ( http://www.js-data.io/docs/dsasyncstorageadapter )
9
15
10
- ### Demo
11
- [ https://js-data-asyncstorage.firebaseapp.com/ ] ( https://js-data-asyncstorage.firebaseapp.com/ )
12
-
13
16
### Project Status
14
17
15
18
__ Latest Release:__ [ ![ Latest Release] ( https://img.shields.io/github/release/lukasreichart/js-data-asyncstorage.svg?style=flat-square )] ( https://github.com/lukasreichart/js-data-asyncstorage/releases )
@@ -25,7 +28,7 @@ var adapter = new DSAsyncStorageAdapter();
25
28
var store = new JSData.DS ();
26
29
store .registerAdapter (' asyncstorage' , adapter, { default: true });
27
30
28
- // "store" will now use the asyncstorage adapter for all async operations
31
+ // "store" will now use the asyncstorage adapter for all operations
29
32
```
30
33
31
34
### Changelog
@@ -37,11 +40,14 @@ store.registerAdapter('asyncstorage', adapter, { default: true });
37
40
- [ GitHub] ( https://github.com/lukasreichart/js-data-asyncstorage ) - View the source code for js-data.
38
41
- [ Contributing Guide] ( https://github.com/lukasreichart/js-data-asyncstorage/blob/master/CONTRIBUTING.md )
39
42
40
- ### Contributing
43
+ ### Features
44
+ - Add better testing (tests are currently executed in chrome, because I don't know of an easy way to test in react-native. )
45
+ - Create an example app of how to use js-data with react-native.
46
+ - ...
41
47
42
48
# Contributing Guide
43
49
44
- First, support is handled via the [ Mailing List ] ( https://groups.io/org/groupsio/jsdata ) . Ask your questions there .
50
+ If you have any questions regarding this adapter, feel free to open an issue or write me an email .
45
51
46
52
When submitting issues on GitHub, please include as much detail as possible to make debugging quick and easy.
47
53
0 commit comments