Expensify/react-native-qrcode-svg

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

Opened this issue · 2 comments

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

);
}

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

npm install react-native-svg

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.