Open martinglova opened 5 years ago
try
npm install --save wanxsb/react-native-qrcode#1a08f9cedcb747fd230be717fe815c686e4427cb react-native-webview
I had the same problem and this worked for me. Thanks
npm install --save wanxsb/react-native-qrcode#1a08f9cedcb747fd230be717fe815c686e4427cb react-native-webview
bless
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
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');
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
Edit node_modules/react-native-qrcode/lib/Canvas.js var { View, //WebView, Platform } = require('react-native');
var { WebView, } = require('react-native-webview');
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