From 947ee8455c862e845c8520df500c75f56892225d Mon Sep 17 00:00:00 2001 From: Hadar Rottenberg Date: Wed, 12 Feb 2020 21:25:58 +0200 Subject: [PATCH] add: update readme with example --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8f2b6d60..68015f6d 100644 --- a/README.md +++ b/README.md @@ -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