Hello,
In order to use WebView from ‘react-native-webview’ I had to import ‘react-native-get-random-values’.
It works fine on the android emulator, but once I expo build:android, the apk crashs,
After trying to analyse in Android Studio :
java.lang.RuntimeException: Expo encountered a fatal error: TypeError: null is not an object (evaluating 'y.getRandomBase64')
Maybe the react-native-get-random-values lib didn’t get linked or something in the Expo build or …
Thank your for your time
Expo CLI 3.17.24 environment info:
System:
OS: macOS Mojave 10.14.5
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.16.0 - /usr/local/bin/node
Yarn: 1.21.1 - /usr/local/bin/yarn
npm: 6.13.4 - /usr/local/bin/npm
IDEs:
Android Studio: 3.6 AI-192.7142.36.36.6308749
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
expo: ~37.0.3 => 37.0.7
react: ~16.9.0 => 16.9.0
react-native: ~0.61.5 => 0.61.5
npmGlobalPackages:
expo-cli: 3.17.24