You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.
My RN app is 0.62.2, ImageZoom is 2.1.12. The ImageZoom is going to zoom in images presented in Android emulator with FastImage. Here is the code:
return (
<ImageZoom
cropWidth={screen_width} //<<<===full screen width returned by Dimension.get(window).width
cropHeight={screen_ht} //<<<===full screen height returned by Dimension.get(window).height
imageWidth={width}
imageHeight={ht}
enableCenterFocus={false}
>
<FastImage
source={{uri:img_source}}
resizeMode={FastImage.resizeMode.cover}
style={{
width:width,
height:ht,
verticalAlign:0,
paddingTop:0,
}}
/>
</ImageZoom>
);
The problem is that the image showed was pushed down half way and only show a portion.
But when ImageZoom was removed and only show with FastImage, then the image aligns to the top which is correct. I tried to set enableCenterFocus to false but it didn't help. The same problem exists with <View> of RN.
The text was updated successfully, but these errors were encountered:
My RN app is 0.62.2, ImageZoom is 2.1.12. The ImageZoom is going to zoom in images presented in Android emulator with FastImage. Here is the code:
The problem is that the image showed was pushed down half way and only show a portion.
But when ImageZoom was removed and only show with FastImage, then the image aligns to the top which is correct. I tried to set enableCenterFocus to false but it didn't help. The same problem exists with
<View>
of RN.The text was updated successfully, but these errors were encountered: