react-native-image-crop-picker
react-native-image-crop-picker copied to clipboard
Rotation gesture is enabled on Android even though enableRotationGesture is set to false
I have disabled rotation gesture, but i can still rotate images with my fingers in the "crop" window.
I have the below configuration
const imagePickerOptions: Options = {
mediaType: "photo",
cropping: true,
freeStyleCropEnabled: true,
enableRotationGesture: false, // this does not disable rotation gesture on Android
loadingLabelText: "Loading",
cropperToolbarTitle: "Rediger billede",
cropperActiveWidgetColor: Colors.primary,
cropperChooseText: "Brug foto",
cropperChooseColor: "#ffffff",
cropperCancelText: "Annuller",
cropperCancelColor: "#ffffff",
...(Platform.OS === "ios" && { height: 1000, width: 800 }),
};
const ImagePickerErrors = {
MISSING_LIBRARY_PERMISSION: "User did not grant library permission.",
MISSING_CAMERA_PERMISSION: "User did not grant camera permission.",
};
const pickImage = async () => {
ImagePicker.openPicker(imagePickerOptions)
.then((image) => storeImage(image))
.catch((error: Error) => {
if (error.message === ImagePickerErrors.MISSING_LIBRARY_PERMISSION) {
// some error handling
}
});
};
Using version 0.42.0 and i also tested with 0.41.6.