Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Dec 12, 2023 · 2 comments

Comments

@abrarulhaq7
Copy link

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
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants