0
I need to create a script that returns and list the images found in the user’s mobile gallery. For this, I am using the getPhotos method of the React-Native Cameraroll component
https://facebook.github.io/react-native/docs/cameraroll#getphotos
Both on IOS and Android, the array of images are returned correctly. but when I try to use the Uri image (using the Image component), on IOS it is displayed, but not on android.
Return of images on IOS ( result.edges.Node.image.Uri ):
Return of images on Android ( result.edges.Node.image.Uri ):
Call code of the images:
<Image resizeMode="cover" style={[ styles.image_item ]} source={{ uri: image.node.image.uri }} />
Used React/Expo vesions:
The prop style is correct, I went through array because the styles are defined in another file. so much so that in IOS the images appear normally. I imagine the error may be in the value returned by Cameraroll on Android
content://media/external/images/media/X
– Danillo a. Oliveira