LinusU / react-native-get-random-values

A small implementation of `getRandomValues` for React Native
MIT License
350 stars 48 forks source link

How can I link this? #24

Closed thomasMinshull closed 3 years ago

thomasMinshull commented 3 years ago

I've received the following error "[javascript] TypeError: null is not an object (evaluating 'r(d[0]).NativeModules.RNGetRandomValues.getRandomBase64')"

after running npm install --save react-native-get-random-values and pod install. Normally at this point I would attempt to add the reference to the .podspec in my podfile. This lib doesn't seem to have a podspec file. How can I add this to my podfile?

thomasMinshull commented 3 years ago

I was mistaken, there is a podspec I was expecting it to be named RNGetRandomValues.podspec, not react-native-get-random-values.podspec. As a result I over looked it.

I was able to add the path to the podspec to my Podfile.

enricop89 commented 3 years ago

@thomasMinshull hey Thomas, how were you able to link this to your podspec? Can you share an example please?

LinusU commented 3 years ago

We've added npx pod-install to the installation instructions now which should link it for you ☺️