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

WebView has been extracted from react-native

Open martinglova opened this issue 5 years ago • 9 comments

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

martinglova avatar May 16 '19 08:05 martinglova

try

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

johnjoshuadablo avatar Jul 16 '19 02:07 johnjoshuadablo

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

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

leticiamrosa avatar Jul 24 '19 22:07 leticiamrosa

bless

andrewhartwig avatar Aug 02 '19 12:08 andrewhartwig

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://[email protected]/wanxsb/react-native-qrcode.git

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

GabrielGalatti avatar Aug 10 '19 15:08 GabrielGalatti

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');

mmoonn2 avatar Aug 26 '19 02:08 mmoonn2

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

maximus123123 avatar Aug 28 '19 15:08 maximus123123

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

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

MelsArabyan avatar Mar 28 '20 19:03 MelsArabyan

try https://www.npmjs.com/package/react-native-qrcode-genetor

imdadatgol avatar May 03 '21 05:05 imdadatgol