Android launchCameraAsync not working consistently

I have an error in Android the method ImagePicker.launchCameraAsync is not returning, so the camera is not displaying. Im using SDK 32

  takePicture = async () => {
    const { actions, navigation } = this.props;
    const { status: status_camera_roll } = await Permissions.askAsync(Permissions.CAMERA_ROLL);
    const { status: status_camera } = await Permissions.askAsync(Permissions.CAMERA);
    if (status_camera !== "granted" || status_camera_roll !== "granted") {
      DropDownHelper.alert('warn', 'Permisos rechazados', 'Activá los permisos de la cámara desde la configuración de tu celular.');
    } else {
      this.setState({ loadingImage: true });
      const photo = await ImagePicker.launchCameraAsync({
        allowsEditing: false,
        aspect: [4, 3],
        quality: 0.5,
        mediaTypes: 'Images'
      });
      if (!photo.cancelled) {
        this.setState({ dni: photo.uri });
        actions.setIdentificationImage(photo);
        navigation.setParams({ disabled: false });
        this.setState({ loadingImage: false });
      }

    }
  }

Hi, i have the same issue.
Please help.

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