Skip to content

mmmoussa/react-native-random-values-jsi-helper

 
 

Repository files navigation

react-native-random-values-jsi-helper

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

Installation

yarn add react-native-random-values-jsi-helper
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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 46.3%
  • Java 21.3%
  • Objective-C 7.9%
  • Objective-C++ 6.0%
  • Ruby 5.9%
  • TypeScript 4.7%
  • Other 7.9%