useWebkit=true and error: Invariant Violation: requireNativeComponent: "RNCUIWebView" was not found in the UIManager.
See original GitHub issueBug description: Invariant Violation: requireNativeComponent: “RNCUIWebView” was not found in the UIManager.
This common issue tells us to link by react-native link
, but react-native 0.61 should do it automatically.
https://github.com/react-native-community/react-native-webview#common-issues
To Reproduce: react-native init new_project, install latest react-native-webview version, Then load WebView:
<WebView
style={{ flex: 1 }}
useWebKit={true}
/>
Expected behavior: Auto-linking should work with react-native@0.61.x! OR at least the error is about RNCWKWebView instead of RNCUIWebView
Environment:
- OS: macOS Mojave 10.14.4
- iOS SDK: Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1 Xcode: 11.3/11C29 - /usr/bin/xcodebuild
- OS version:
- npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.5 => 0.61.5
- npmGlobalPackages: react-native-cli: 2.0.1
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
requireNativeComponent: "RNCWebView" was not found in ...
Invariant Violation : requireNativeComponent: "RNCWebView" was not found in the UIManager. This error is located at: in RNCWebView (at ...
Read more >Invariant Violation: requireNativeComponent: "RNCWebView ...
I'm facing a similar issue: Invariant Violation: requireNativeComponent: "RNCUIWebView" was not found in the UIManager. react-native@0.61.x
Read more >Invariant Violation: requireNativeComponent: "RTCVideoView ...
The following error keeps coming up: “Invariant Violation: requireNativeComponent: “RTCVideoView” was not found in the UIManager.”.
Read more >ERROR Invariant Violation: requireNativeComponent ...
Assuming that you are using VSCode to build your project, check that your Terminal states that you are currently in the correct directory...
Read more >Issues trying to wrap native Android components - React Native
Error is of the “Invariant Violation” form such as: Invariant Violation: requireNativeComponent: “MyViewManager” was not found in the UIManager.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Mervsz As I checked
RNCUIWebView
is available in @5.x version. So I used the 5.12.1 version with the auto-linking mechanism of react-native 0.61 (do not runreact-native link
, do not do manual linking)I have never succeeded with v7 & v8
Using react-native-webview on tvOS doesn’t seem to be working? using:
"react-native": "npm:react-native-tvos@0.63.4-0",
"react-native-webview": "^11.2.1"