I am working on a react-native app. I am fetching some images from an API and displaying them as a flat-list. The problem is that these images show perfectly on the iOS Simulator but do not display on the Android emulator. I have set the widths and heights to the images but the issue remains the same.
Here is the code below
Component
<Image
style={styles.image}
source={{
uri: image,
}}
resizeMode="contain"
/>
Styles
container__image: {
width: '100%',
},
image: {
width: '100%',
height: 200,
resizeMode: 'contain',
},
The image
in front of the uri
is a prop that contains the http
address of the image.