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

handleLayout need to check height change, otherwise it is not working properly on iPad rotation

Open simonxcheng opened this issue 5 years ago • 0 comments

Hi, the handleLayout function needs to check height change, otherwise it is not working on iPad rotation. Please add following change to that function:

if (event.nativeEvent.layout.width !== this.width || event.nativeEvent.layout.height !== this.height) { .... }

Thanks, SXC

simonxcheng avatar Jan 12 '21 23:01 simonxcheng