react-native-image-crop-tools icon indicating copy to clipboard operation
react-native-image-crop-tools copied to clipboard

keepAspectRatio not working in iOS devices

Open jasir-m opened this issue 4 years ago • 4 comments

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.

jasir-m avatar Dec 16 '20 04:12 jasir-m

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

hhunaid avatar Dec 16 '20 11:12 hhunaid

<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 avatar Dec 17 '20 05:12 jasir-m

it is working on some devices, any idea why?

jasir-m avatar Dec 23 '20 10:12 jasir-m

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

hhunaid avatar Apr 04 '21 13:04 hhunaid