React-native: Warning:WebView has been extracted from react-native core and will be removed in a future release

Created on 30 Jan 2019  路  4Comments  路  Source: facebook/react-native

Environment


iOS SDK:
Platforms: iOS 12.1, macOS 10.14
npmPackages:
"react": "16.6.3",
"react-native": "0.58.0",
"react-native-gesture-handler": "^1.0.15",
"react-navigation": "^3.0.9"
"react-native-root-toast": "^3.0.2"

Description

I will get this warning when I add 'react-native-root-toast', but I didn't use webview with it.

Reproducible Demo


[skip envinfo]

Bug WebView Locked

Most helpful comment

i think what @Jayxiang is trying to say is that there is no way to disable the warning. F.ex when running some tests for a component that doesn't use webview, I get
image

I am aware that the move to react-native-webview is an in-progress task, but It would be preferable if we could dismiss or suppress the error.

All 4 comments

Can you run react-native info and edit your issue to include these results under the Environment section?

If you believe this information is irrelevant to the reported issue, you may write [skip envinfo] under Environment to let us know.

this warning is from react-native and new to 0.58. So please use WebView from react-native-webview instead of react-native.

Yes, I know the meaning of this warning, but my current problem is that I did not use and import webview, but this warning will appear.

i think what @Jayxiang is trying to say is that there is no way to disable the warning. F.ex when running some tests for a component that doesn't use webview, I get
image

I am aware that the move to react-native-webview is an in-progress task, but It would be preferable if we could dismiss or suppress the error.

Was this page helpful?
0 / 5 - 0 ratings