ImagePicker/Camera Roll Small Window Size

Please provide the following:

  1. SDK Version: 38.0.8
  2. Platforms(Android/iOS/web/all): Android/iOS

Hi,

  • The ImagePicker/Camera Roll window size is small/doesn’t take up the whole screen when trying to upload an image for a profile picture.
  • The image upload itself works (I have gotten the camera_roll permission and such) but it’s just the camera roll window that’s the issue.

permissions:

const results = await Permissions.askAsync(Permissions.CAMERA_ROLL);

pickImage function:

_pickImage = async () => {
        try {
            let result = await ImagePicker.launchImageLibraryAsync({
                mediaTypes: ImagePicker.MediaTypeOptions.All,
                allowsEditing: false,
                aspect: [1, 1],
                quality: 1,
            }).then((result) => {
                if (!result.cancelled) {
                    this.setState({ image: result.uri });
                    this.setState({ placeholderOpacity: 0 });
                    console.log("ImagePicker | _pickImage, state image uri", result.uri, this.state.image);
                    return this.uriToBlob(result.uri);
                }
            }).then((blob) => {
                return this.uploadToFirebase(blob);
            }).then((snapshot) => {
                console.log("File uploaded");
            }).catch((error)=>{
                console.log("ImagePicker | _pickImage catch error", error);
            });

        } catch (E) {
            console.log("ImagePicker | _pickImage try catch E", E);
        }
    };

I have referenced the image picker docs here: Picking an image - Expo Documentation

Blocked out some of the stuff so the app wouldn’t be as identifieable. This is a screenshot from an iOS simulator, but issue is present on an iOS 13.x device

Any help would be appreciated, thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.