cssivision / react-native-qrcode

a minimalist qrcode component for react-native
MIT License
853 stars 303 forks source link

WebView has been extracted from react-native #75

Open martinglova opened 5 years ago

martinglova commented 5 years ago

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 commented 5 years ago

try

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

leticiamrosa commented 5 years ago

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

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

andrewhartwig commented 5 years ago

bless

GabrielGalatti commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 4 years ago

Updated Generation of QR Code in React Native to react-native-qrcode-svg

MelsArabyan commented 4 years ago

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

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

imdadatgol commented 3 years ago

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