Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/staltz/gun-asyncstorage
Use Gun.js in React Native through AsyncStorage
https://github.com/staltz/gun-asyncstorage
Last synced: about 2 months ago
JSON representation
Use Gun.js in React Native through AsyncStorage
- Host: GitHub
- URL: https://github.com/staltz/gun-asyncstorage
- Owner: staltz
- License: mit
- Created: 2017-06-03T14:58:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-13T13:27:52.000Z (over 4 years ago)
- Last Synced: 2024-07-23T14:44:43.003Z (about 2 months ago)
- Language: TypeScript
- Size: 5.86 KB
- Stars: 52
- Watchers: 6
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gun AsyncStorage
Interop layer between [Gun.js](https://gun.js.org) and React Native's [AsyncStorage](http://facebook.github.io/react-native/docs/asyncstorage.html). In other words, allows you to use Gun.js in React Native apps!
## Installation
```
npm install gun-asyncstorage
```## Usage
In `index.ios.js` or `index.android.js` import this before importing anything else related to Gun:
```js
import 'gun-asyncstorage';
```And that's it, all data that is written to the Gun instance will be stored (and recovered) from AsyncStorage.