react-native-image-zoom
react-native-image-zoom copied to clipboard
Zooming with flex-start
If I use the Window Height and Width for my Imagezoom and the styling justifyContent: 'flex-start', I get problems with the position of the image when I zoom. It seems like the top part got cut off.
<ImageZoom
ref={imageZoomRef}
cropWidth={Dimensions.get('window').width}
cropHeight={Dimensions.get('window').height}
imageWidth={imageWidth}
imageHeight={imageHeight}
style={{
alignItems: 'center'
}}
>
<ImageBackground
source={{ uri: uri }}
style={{
width: imageWidth,
height: imageHeight
}}
>
</ImageBackground>
</ImageZoom>