In Expo SDK45, expo-random is no longer a standard React Native module on iOS. Now it's an Expo JSI module which is exported as global.ExpoModules.ExpoRandom instead of NativeModules.ExpoRandom.
On Android the old approach still works in SDK45, but will stop working in SDK46.
In Expo SDK45,
expo-random
is no longer a standard React Native module on iOS. Now it's an Expo JSI module which is exported asglobal.ExpoModules.ExpoRandom
instead ofNativeModules.ExpoRandom
. On Android the old approach still works in SDK45, but will stop working in SDK46.Fixes https://github.com/expo/expo/issues/17270