react-native-random-values-jsi-helper
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

react-native-random-values-jsi-helper

React Native polyfill for crypto.getRandomValues. Used in libraries like uuid.

Installation

React Native 0.71.0 or higher:

yarn add react-native-random-values-jsi-helper
npx pod-install

React Native < 0.71:

yarn add react-native-random-values-jsi-helper@1.0.4
npx pod-install

Usage

Import react-native-random-values-jsi-helper in your index.js file.

//index.js
import "react-native-random-values-jsi-helper";

You can now use the uuid package in your React Native app.

Performance

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.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Acknowledgements

@mrousavy

@expo

Other projects

react-native-get-random-values

Package Sidebar

Install

npm i react-native-random-values-jsi-helper

Weekly Downloads

130

Version

2.0.1

License

MIT

Unpacked Size

63.1 kB

Total Files

32

Last publish

Collaborators

  • mateioprea