Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

React Native - Problem Using Image Component

$
0
0

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."Error

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>);}

Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>