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.
- 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.