我正在使用 react-native-webview 库来加载网页,它在调试中运行良好,但是当我创建发布版本时。然后单击选项卡加载 webview ,应用程序崩溃。以下是错误。最后我也附上了错误跟踪。
我正在使用 react-native: "0.62.0" react-native-webview : "^9.0.2",
这是当我单击按钮加载 webview 屏幕时的跟踪。
> 2020-04-10 11:39:44.812 2584-2646/com.trackplayer E/ReactNativeJS:
> Error: crypto.getRandomValues() not supported. See
> https://github.com/uuidjs/uuid#getrandomvalues-not-supported
>
> This error is located at:
> in n
> in RCTView
> in y
> in Unknown
> in Unknown
> in Unknown
> in Unknown
> in RCTView
> in S
> in RCTView
> in RCTView
> in E
> in RCTView
> in c
> in RCTView
> …Run Code Online (Sandbox Code Playgroud) javascript android webview react-native react-native-webview