Skip to content
 
 

Repository files navigation

react-native-randombytes

Drop-in react-native-randombytes compatible module based on react-native-get-random-values, with distinct native module names to avoid conflicts when both are present. Useful for setting up node-libs-react-native in a React Native project with bridgeless architecture.

Installation

  1. Edit package.json
{
  // other properties
  "resolutions": {
    // other resolutions
    "node-libs-react-native/react-native-crypto/react-native-randombytes": "madfish-solutions/react-native-randombytes",
    "node-libs-react-native/react-native-randombytes": "madfish-solutions/react-native-randombytes"
  }
}
npm install
npx pod-install

💡 If you use the Expo managed workflow you will see "CocoaPods is not supported in this project" - this is fine, it's not necessary.

API

See react-native-randombytes usage

About

An adapter of react-native-get-random-values with react-native-randombytes interface

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages