Expensify / react-native-qrcode-svg

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

Invariant Violation: requireNativeComponent: "RNSVGSvgViewAndroid" was not found in the UIManager. #186

Open alimaniddekh opened 1 year ago

alimaniddekh commented 1 year ago

I get this Error even when I have installed @react-native-qrcode-svg and @react-native-svg. And I didn't find any solution. ` import React from 'react'; import { View, Text, SafeAreaView, TouchableOpacity, StyleSheet } from 'react-native'; import QRCode from 'react-native-qrcode-svg'; const TransactionDetailsScreen = ({ navigation }) => { const route = useRoute(); const { person } = route.params; return ( <SafeAreaView style={{ flex: 1 }}> <View style={{ flex: 1, padding: 16 }}> <TouchableOpacity onPress={() => navigation.replace('DrawerNavigatorRoutes')} style={styles.goBackButton}>

      <Text style={styles.goBackText}>Go Back</Text>
    </TouchableOpacity>
    <View
      style={{
        flex: 1,
        alignItems: 'center',
        justifyContent: 'center',
      }}>
      <Text>{person.id}</Text>
      <QRCode value={person.name} />
    </View>
  </View>
</SafeAreaView>

); };

export default TransactionDetailsScreen; `

tanzeel152 commented 1 year ago

facing the same error got a solution?

nalberthy commented 2 weeks 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.