react-native-recaptcha icon indicating copy to clipboard operation
react-native-recaptcha copied to clipboard

Webview has been removed from react-native

Open LucasBrazi06 opened this issue 5 years ago • 6 comments

I've upgraded to the latest version of react-native 0.60.15 and I got this exception: image

LucasBrazi06 avatar Sep 21 '19 16:09 LucasBrazi06

The react-native has removed the WebView from their core in the new version 0.60.X. So try to install react-native-webview and find the "MessageWebView.js" file in your node_modules/react-native-recaptcha folder, change the line 2 from

import { WebView, View } from 'react-native'

to

import { View } from 'react-native'.

And import WebView as:

import { WebView } from 'react-native-webview';

to use the original WebView functionality. I hope it helps.

renzhezizhi avatar Oct 02 '19 22:10 renzhezizhi

Is there a patch for this with a solution or removal of Webview via react-native?

studiobrain avatar Oct 08 '19 19:10 studiobrain

The react-native has removed the WebView from their core in the new version 0.60.X. So try to install react-native-webview and find the "MessageWebView.js" file in your node_modules/react-native-recaptcha folder, change the line 2 from

import { WebView, View } from 'react-native'

to

import { View } from 'react-native'.

And import WebView as:

import { WebView } from 'react-native-webview';

to use the original WebView functionality. I hope it helps.

Now, the app shows "View config not found for name RNCWebView" error

marcosvaz avatar Feb 05 '20 17:02 marcosvaz

The react-native has removed the WebView from their core in the new version 0.60.X. So try to install react-native-webview and find the "MessageWebView.js" file in your node_modules/react-native-recaptcha folder, change the line 2 from

import { WebView, View } from 'react-native'

to

import { View } from 'react-native'.

And import WebView as:

import { WebView } from 'react-native-webview';

to use the original WebView functionality. I hope it helps.

Now, the app shows "View config not found for name RNCWebView" error

It sounds like you didn't link the react-native-webview successfully. Please try this tutorial to link it before use it. Hope it helps.

renzhezizhi avatar Feb 06 '20 07:02 renzhezizhi

@marcosvaz can you create a patch or let us know the steps you followed for installing WebView?

ashuOxit avatar Sep 15 '22 08:09 ashuOxit

Use this library

https://www.npmjs.com/package/react-native-secure-captcha-v3

amitmehtacode avatar May 09 '24 19:05 amitmehtacode