Open Iamivan1996 opened 4 years ago
Did you figure this out? On iOS it is working fine, but on Android this component appears to be broken. renderImage() is always passing 'undefined' for source.uri
and style.width
/style.height
.
EDIT: Found a fix, turns out that on Android I need to prepend file:
to the URL given in each imageUrls
item, and then everything works as expected:
imageUrls={[{ url: (Platform.OS === 'android' ? 'file:' : '') + path }]}
Not sure if this is an issue with this lib, or something else.
Not sure, but i found that when i set android:largeHeap = true, and everything works
"react": "16.8.6", "react-native": "0.60.5", "react-native-image-zoom-viewer": "^2.2.27",
All of the portrait images are not visible, the error message always return 'source' of undefined and the status is "fail", when the app go to background and then go to active mode, the image status is "success" and the image is visible, so weird.
Even i have set the width and height on imageUrls, the status is "success", but the image still not visible.