qrcode-svg version 5.0.5 doesn't work with react version 16.2
See original GitHub issueTried the following combinations and couldn’t get <QRCode value='hello world'/> to work.
Scenario 1:
react-native-qrcode-svg: version 5.0.5
react-native-svg: version 5.4.1
react: version 16.0.0
==> Error message: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. Check the render method of Rect
.
Scenario 2: react-native-qrcode-svg: version 5.0.5 react-native-svg: version 6.0.1-rc.1 react: version 16.0.0 => Error message: No component found for view with name “RNSVGRect”
Do I have to bump down the version of react to 16.0.0-alpha.12 to make it work?
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Npm Error - No matching version found for - Stack Overflow
npm complains that there "is no matching version found", but it's clearly installed. Worked to change package.json to target `"^3.0.0" and then ...
Read more >qrcode.react - npm
React component to generate QR codes. Latest version: 3.1.0, last published: 6 months ago. Start using qrcode.react in your project by ...
Read more >9 reasons Why Your QR Code is Not Working - Beaconstac blog
If the QR Code is still not working, try scanning it via an external QR Code scanner or update your operating system to...
Read more >qrcode · PyPI
Pure python QR Code generator. Generate QR codes. For a standard install (which will include pillow for generating images), run: pip install qrcode[pil] ......
Read more >QRCode Generator for React Native | by Mushtaque Ahmed
In order to generate QR Code I tried two npm packages 1.react-native-qrcode-image 2. react-native-qrcode-svg Run these commands : npm ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You might have forgotten to link. Have you run
react-native link
? N.B don’t forget to restart the packager after linking.I ran into this as well, but was able to fix it by running gradlew clean in my android directory, and then rebuilding the app with react-native run-android. Just restarting the packager wasn’t quite enough.