-
Notifications
You must be signed in to change notification settings - Fork 60
Description
Hello, I'm working on upgrading my project to Expo 40 from 39, but I'm running into this error in the getRandomBase64.js file of react-native-get-random-values on both iOS and Android. After some playing around with the package code, it appears that RNGetRandomValues is null.
One point of confusion is why my code would even hit getRandomBase64.js, since it is on the managed workflow and #13 seems to say that my project should be hitting the getRandomBase64.expo.js version instead. If I force that (by running the getRandomBase64.expo.js code in getRandomBase64.js), I don't get the error any more (I get a different error about AsyncStorage, but that appears to be further down the line and not related to this package). When I run the same project and same package with SDK 39, I don't get the error and I can confirm that it is successfully running the .expo.js version of getRandomBase64 (NativeModules.ExpoRandom.getRandomBase64String). If I force the project with SDK 39 to hit NativeModules.RNGetRandomValues.getRandomBase64, it errors as expected.
Has something changed between SDK 39 and 40 that would cause this issue between the .expo.jsand .js files, either on the package side or the SDK?
(EDIT: fixed a mismatched reference to the two different getRandomBase64 files)
