Expensify / react-native-qrcode-svg

A QR Code generator for React Native based on react-native-svg and node-qrcode.
MIT License
1.06k stars 213 forks source link

getting error Invariant Violation: requireNativeComponent: "RNSVGSvgViewAndroid" was not found in the UIManager while using react-native-qrcode-svg package in react native expo. #193

Open abrarulhaq7 opened 9 months ago

abrarulhaq7 commented 9 months ago

Hye community! I am getting error "error Invariant Violation: requireNativeComponent: "RNSVGSvgViewAndroid" was not found in the UIManager". in react native expo. it was working fine few days ago. But from last three days its not working. package version is: "react-native-qrcode-svg": "^6.2.0", react native version: "react-native": "0.71.8", react version: "react": "18.2.0", expo version: "expo": "~48.0.18", recently i installed "expo-notifications": "~0.18.1", package too. but i don't think so this package shouldn't made any issue for react-native-qrcode-svg package. i am willing to uninstall expo-notifications package. Kindly help me resolving this issue.

import React from "react"; import { View, Text, StyleSheet } from "react-native"; import QRCode from "react-native-qrcode-svg";

export default function ProfileQR({ route }) { const { userUid } = route.params; const data = { userUid: userUid }; const jsonData = JSON.stringify(data);

return (

Scan to add user

); }

RickRedSix commented 5 months ago

This usually happens if you haven't got react-native-svg installed. Have you tried manually installing it via

npm install react-native-svg

nalberthy commented 4 days ago

I had this problem and it was related to the Android version of the emulated device. I solved it by creating a new device with Android 12 version.