I am trying to display an image on my app based on the image name string retrieved, but image did not show see my code below.
const Viewers = () => {
return (
<FlatList
data = {profileData}
keyExtractor={item => item.id}
renderItem={({item}) => {
return (
<View>
<Image
source={require("../assets/pix/" + item.user_image)}
style={{
width: 35,
height: 35
}}
/>
</View>
)
}}
/>
);
};
I also tried this also source={{uri: '../assets/pix/'+item.user_image}}
no result.
Thanks for the help