React Native crypto.getRandomValues JSI implementation
npm install react-native-random-values-jsi-helperReact Native polyfill for crypto.getRandomValues. Used in libraries like uuid.
React Native 0.71.0 or higher:
``sh`
yarn add react-native-random-values-jsi-helper
npx pod-install
React Native < 0.71:
`sh`
yarn add react-native-random-values-jsi-helper@1.0.4
npx pod-install
Import `react-native-random-values-jsi-helper` in your index.js file.
`js``
//index.js
import "react-native-random-values-jsi-helper";
You can now use the uuid package in your React Native app.
This module is written in C++ JSI.
Basically there is no over the bridge traffic overhead and no serialization/deserialization since the random arrays are generated on native side.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT