hhunaid / react-native-image-crop-tools

Native-ish Image Crop Tools for react native
171 stars 58 forks source link

keepAspectRatio not working in iOS devices #22

Open jasir-m opened 3 years ago

jasir-m commented 3 years ago

when keepAspectRatio is set to true, it is working fine on android devices and also the iOS simulator, but when it is used on a real iOS device, the user is able to change the aspect ratio of the crop.

hhunaid commented 3 years ago

Hi, can you please attach some video and/or code snippet? This has never come up before.

jasir-m commented 3 years ago

<CropView sourceUrl={image.uri} style={styles.cropSection} ref={(ref) => this.cropModalRef = ref} onImageCrop={(res) => this.props.saveImage(res, image)} keepAspectRatio aspectRatio={{ width: isForMobile ? 1 : 3.5, height: isForMobile ? 1.2 : 1 }} /> ,this is my implementation sample_2eZA8rMd_GtRM.mp4.zip

jasir-m commented 3 years ago

it is working on some devices, any idea why?

hhunaid commented 3 years ago

You mean on some iOS devices? Can you name some of them?