Camera and Gallery auto closes on iOS after a brief second [🐛]

Description

When calling launchCamera or launchImageLibrary, the camera and the gallery is only shown for a brief second before it disappears on iOS.

Same issue on v2.3.4 when using

ImagePicker.launchCamera
or
ImagePicker.launchImageLibrary

Using

Video showing the issue.

How to repeat issue and example

  • step to reproduce the issue:
  • call launchCamera or launchImageLibrary

Additional Information

  • Image Picker version: 3.1.3
  • React Native version: 0.63.4
  • Platform: iOS
  • Development Operating System: MacOS
  • Dev tools: Xcode version: 12.3, iOS version: 14.2

1 possible answer(s) on “Camera and Gallery auto closes on iOS after a brief second [🐛]

  1. Adding a setTimeout function that waits 200 milliseconds before opening the camera or gallery so the “react-native-actions-sheet” can close solved the issue:))