Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebView has been extracted from react-native #75

Open
martinglova opened this issue May 16, 2019 · 9 comments
Open

WebView has been extracted from react-native #75

martinglova opened this issue May 16, 2019 · 9 comments

Comments

@martinglova
Copy link

Warning: WebView has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from 'react-native-webview' instead of 'react-native'. See https://github.com/react-native-community/react-native-webview

@johnjoshuadablo
Copy link

try

npm install --save wanxsb/react-native-qrcode#1a08f9cedcb747fd230be717fe815c686e4427cb react-native-webview

@leticiamrosa
Copy link

leticiamrosa commented Jul 24, 2019

I had the same problem and this worked for me. Thanks

npm install --save wanxsb/react-native-qrcode#1a08f9cedcb747fd230be717fe815c686e4427cb react-native-webview

@andrewhartwig
Copy link

bless

@GabrielGalatti
Copy link

I found an error when I try to execute the setup of this package:

Error while executing:
npm ERR! undefined ls-remote -h -t ssh://git@github.com/wanxsb/react-native-qrcode.git

npm install --save wanxsb/react-native-qrcode#1a08f9cedcb747fd230be717fe815c686e4427cb react-native-webview

@mmoonn2
Copy link

mmoonn2 commented Aug 26, 2019

Edit node_modules/react-native-qrcode/lib/Canvas.js

var {
    View,
    WebView,
    Platform
} = require('react-native');

To

import { WebView } from "react-native-webview";
var {
    View,
    // WebView,
    Platform
} = require('react-native');

@maximus123123
Copy link

Edit node_modules/react-native-qrcode/lib/Canvas.js

var {
    View,
    WebView,
    Platform
} = require('react-native');

To

import { WebView } from "react-native-webview";
var {
    View,
    // WebView,
    Platform
} = require('react-native');

Not a permanent solution though :/ someone will probably will have to create a fork like wanxsb link

@SnehalAgrawal
Copy link

@MelsArabyan
Copy link

Edit node_modules/react-native-qrcode/lib/Canvas.js
var {
View,
//WebView,
Platform
} = require('react-native');

var {
WebView,
} = require('react-native-webview');

@imdadatgol
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants