react-native-qrcode
react-native-qrcode copied to clipboard
Failed to load bundle. Metro bundler has encountered an internal error
Version: react-native-cli: 2.0.1 react-native: 0.53.0
How happened 1 install this library.
2 just add
import QRCode from 'react-native-qrcode';
to one of screens.
3 refresh the simulator and got this.
update: it should be caused by at line: var qr = require('qr.js');
@almorak may I know how to resolve this issue?
@tedwong
i forgot how to fix it - -", i removed it from my project.
but i choose to use react-native-qrcode-svg instead.
Its performance is better, shorter loading time.
@tedwong I had the same problem. And installing dependancies manually. It worked! In my case dependency was qr.js (npm install [email protected] --save)