react native - how to make the default crop window in expo-image-picker as max image dimensions [android] - Stack Overflow

admin2025-04-16  6

I have expo-image-picker 15.0.5 installed in my app.

Issue

My issue is when I set the allowEditing: true in my image picker, there is a default crop window that is presented in Android platform (as shown in image).

I want to make that default crop window to be set to the dimensions of the image when picking or clicking camera images.

Code:

        const result = await ImagePicker.launchCameraAsync({
            allowsEditing: true,
            quality: 0.1,
        });

Current behaviour

Left is android and Right is iOS right after picking an image from gallery when allowEditing is set to true

This does not seems to be the case in iOS, the image cropper window is already set to even more than the image dimensions.

Want the same behaviour on Android Platform.

转载请注明原文地址:http://www.anycun.com/QandA/1744768636a87354.html