I am trying to use the Image component in my flatlist however i get this error when i try to use it.
"JSX element class does not support attributes because it does not have a 'props' property."
My Code:
export default function FlatList() {const renderItem = ({ item }) => {<View><Image source={{ uri: item.picture }} /></View>;};return(<View><FlatList data={routeArray} renderItem={renderItem} keyExtractor={(item) => item.id} /></View>);}