mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
add: update readme with example
This commit is contained in:
parent
5016298b45
commit
947ee8455c
@ -201,15 +201,16 @@ var SEA = require('gun/sea');
|
||||
|
||||
## React Native
|
||||
Like nodejs we need to shim webcrypto we do this with a webview bridge
|
||||
isomorphic-webcrypto can also works but lacks in performance and has issues with encrypting large files
|
||||
isomorphic-webcrypto can also work but lacks in performance and has issues with encrypting large files
|
||||
some of the performance issues are related to the javascript engine, which can be improved if switching to JIT
|
||||
enabled versions of v8 or jsc
|
||||
|
||||
for window.crypto.getRandomValues you can use either react-native-crypto or react-native-get-random-values
|
||||
|
||||
- `npm install buffer text-encoding react-native-webview-bridge react-native-get-random-values --save`
|
||||
- follow instructions to install [WebviewCrypto](https://github.com/saulshanabrook/react-native-webview-crypto)
|
||||
- react might still complain about missing isomorphic-webcrypto although its not needed
|
||||
so install it `npm i isomorphic-webcrypto`
|
||||
|
||||
see working [example repo](https://github.com/gooddollar/gun-expo-react-native)
|
||||
see working [example repo](https://github.com/gooddollar/gun-webcrypto-react-native)
|
||||
|
||||
## Deploy
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user