react-native-image-zoom icon indicating copy to clipboard operation
react-native-image-zoom copied to clipboard

Zooming with flex-start

Open karvulf opened this issue 5 years ago • 0 comments

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>

karvulf avatar Mar 25 '19 10:03 karvulf