question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

useWebkit=true and error: Invariant Violation: requireNativeComponent: "RNCUIWebView" was not found in the UIManager.

See original GitHub issue

Bug 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

2reactions
luatndcommented, Jan 10, 2020

@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 run react-native link, do not do manual linking)

I have never succeeded with v7 & v8

0reactions
asharafshahicommented, Feb 8, 2021

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"

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found