I was trying to solve : Invariant Violation: "main" has not been registered
Uninstalled react-native-gesture-handler, react-native-reanimated, node_modules and package-lock before reinstalling everything (npm & npx expo)
Now i can start the app but all my local images disappeared
That’s how i define an image : <Image source={require(‘../Images/infirmière.png’)} style={styles.img}/> (All images are still in the folder Images)
Never happened to me before, does someone know what’s going on ?
2
Answers
The app loads and the images don't show
Package.json
From one of my files :
import { View, StyleSheet, SafeAreaView, Text, TextInput, StatusBar, Image, TouchableOpacity, Alert } from 'react-native';
Please define "Dissapeared". The app loads and the images just dont show? Or are you getting an error that the image(s) cannot be found? Please also include code that shows your package.json, how you are importing the image component and the styles.img object.