Closed Erwan-DATIN closed 3 weeks ago
Easiest way to fix this for end-users would be to install and add import 'react-native-get-random-values' at the top of their React Native / Expo app, like mentioned here: https://www.npmjs.com/package/uuid#react-native--expo
(already discussed in https://github.com/Unleash/unleash-proxy-client-js/issues/87)
error "crypto.getRandomValues) not supported" in react-native application (0.71) in iOS simulator
Currently testing unleash and more precisely variants I encounter an error (does not occur in my testing web application):
Steps to reproduce the bug
In a react-native application (my rn version is currently v0.71.x)
useVariant()
Expected behavior
Should not throw this error
Logs, error output, etc.
See screenshot below.
Screenshots
Additional context
react-native 0.71+
Unleash version
@unleash/proxy-client-react@4.3.0
Subscription type
None
Hosting type
Hosted by Unleash
SDK information (language and version)
No response