Bug: Android camera crashes after image capture on newer devices (Samsung, OnePlus, Oppo, Vivo)

Author: vinod1988Created Jul 27, 2026Updated Sep 14, 2026
Labels:bug: Bug

Bug: Android camera crashes after image capture on newer devices (Samsung, OnePlus, Oppo, Vivo)

Description

The camera launches successfully using launchCamera, and the user is able to capture an image. However, immediately after the image is captured—when the callback/result is about to be returned—the application crashes on Android.

The crash occurs outside the JavaScript runtime, so it is not caught by try/catch and no JS error is reported. This appears to be a native crash.

The issue is reproducible on several newer Android devices from different manufacturers, including Samsung, OnePlus, Oppo, and Vivo. The same implementation works correctly on iOS.

Steps to Reproduce

  1. Configure the camera options:

    typescript
    const options: any = {
      mediaType: 'photo',
      includeBase64: false,
      maxHeight: 1280,
      maxWidth: 960,
      quality: 0.8,
      saveToPhotos: false,
    };
  2. Launch the camera:

    typescript
    const response = await launchCamera(options);
  3. Capture a photo.

  4. As soon as the camera returns the result, the application crashes.

Expected Behavior

After capturing an image, launchCamera should return the response successfully without crashing.

Actual Behavior

  • Camera opens successfully.
  • Photo is captured successfully.
  • Immediately after capture, the app crashes before the response can be processed.
  • The crash is not caught by try/catch.
  • No JavaScript exception is logged, suggesting a native Android crash.

Environment

  • react-native-image-picker: 8.2.1
  • React Native: 0.81.5
  • Platform: Android (iOS works correctly)
  • Development OS: macOS
  • Editor: VS Code

Affected Devices

Observed on multiple newer Android devices, including:

  • Samsung
  • OnePlus
  • Oppo
  • Vivo

Additional Information

  • Unable to capture a native crash stack trace.
  • The issue does not occur on iOS.
  • The crash happens consistently after taking a photo, before the callback can be handled in JavaScript.

Source: react-native-image-picker/react-native-image-picker