Closed narodejesus closed 6 years ago
The PhotoVIew doesn't seem to respect new width and height on orientation change. My workaround is to set a key on the PhotoView to force a rerender on orientation change:
<PhotoView
key={`PhotoView-landscape-${isLandscape}`}
source={{uri: image}}
minimumZoomScale={1}
maximumZoomScale={10}
androidScaleType="fitCenter"
onLoad={() => console.log("Image loaded!")}
style={{ width: isLandscape ? deviceHeight : deviceWidth }}
/>
thanks @computerjazz .. it works though it result some minor flickers
The image doesn't rescale if you change the orientation in IOS in android works perfectly
here is the screenshot