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:
- for IOS
- cd ios
- pod install
- rebuild project
- 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.