| .. | ||
| android | ||
| ios | ||
| src | ||
| .babelrc | ||
| .buckconfig | ||
| .flowconfig | ||
| .gitattributes | ||
| .watchmanconfig | ||
| app.json | ||
| index.js | ||
| package.json | ||
| README.md | ||
| shim.js | ||
Gun on react-native!
running the demo
- do
yarn installon the directory of the demoexamples/react-native - run the demo with
react-native run-iosorreact-native run-android
debugging
i would recommend using react-native-debugger but you can use chrome's debugger as well
- ios:
cmd+DthenDebug JS Remotely - android:
cmd+MthenDebug JS Remotely
now you have access to the gun globals on the console which are
gun -> the root gun
user -> the gun user
how it all of this is done
since react-native doesnt provide the crypto module that we desire the most and all of the packages are incompatible with react-native/sea, and so to get sea.js working we use a webview(react-native browser) and bridge the crypto module from that browser to the global window and thats exactly what webview-crypto does, thanks to webview-crypto repo, the webview-crypto provided in this repo is somewhat the same but modified to get it working and mostly compatible with sea/react-native (even though there is a polyfiller for that but it just doesnt work ;/).