Home > front end >  Invariant Violation: requireNativeComponent: "BVLinearGradient" was not found in the UIMan
Invariant Violation: requireNativeComponent: "BVLinearGradient" was not found in the UIMan

Time:05-14

the error above is shown in this import

        import React from 'react';
import { 
    View, 
    Text, 
    TouchableOpacity, 
    Dimensions,
    StyleSheet,
    StatusBar,
    Image
} from 'react-native';
import * as Animatable from 'react-native-animatable';
import LinearGradient from 'react-native-linear-gradient';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
import { useTheme } from '@react-navigation/native';

this is the import statement bringing the error

CodePudding user response:

try:

  1. for IOS
  • cd ios
  • pod install
  • rebuild project
  1. for android:
  • Uninstall application in Android emulator
  • cd Android
  • ./gradlew clean && ./gradlew cleanBuildCache
  • npm run android

CodePudding user response:

It worked but first, I need to upgrade my Java version. Thanks.

  • Related