question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

qrcode-svg version 5.0.5 doesn't work with react version 16.2

See original GitHub issue

Tried 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:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
msagerydcommented, Dec 19, 2017

You might have forgotten to link. Have you run react-native link? N.B don’t forget to restart the packager after linking.

0reactions
elewincommented, Mar 13, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found