I'm developing an app in React Native using the Expo framework. In the app users can take images and they have to be resized by the user itself (note: resizing it later programmatically is not possible because I might cut off important details).
When using the Expo ImagePicker library I can give an aspect ratio and this works perfect on Android, but not on IOS. On IOS I cant select the bottom or very top of the image, just the preselected square (see screenshot below). I can move the square around but it forces itself back to the preselected area.
When selecting a picture from the image library the square selection works just fine, this only happens when taking a live picture.
Anybody experienced this or knows a fix? Thanks in advance.
Code:
let result = await ImagePicker.launchCameraAsync({
allowsEditing: true,
aspect: [1, 1],
quality: 1,
});
Tried a third-party library and adjusting the aspect ratio, both didn't work.