ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.12k stars 1.56k forks source link

Camera and cropping view on Android 15 #2102

Open flipflop97 opened 4 days ago

flipflop97 commented 4 days ago

Version

Tell us which versions you are using:

Platform

Tell us to which platform this issue is related

Expected behaviour

Camera picker should have device insets to make sure elements are not drawn underneath the system bars

Actual behaviour

Camera picker and cropper draw under system bars in some circumstances

Steps to reproduce

  1. Setup project which targets Android 15, and uses the camera image crop picker

  2. Run on Android virtual device "Pixel 8 Pro - API 35-ext13"

  3. Open the camera picker and cropper, and notice the system bars cover the top and bottom

Note that I cannot reproduce this on a real Pixel 8 Pro with Android 14 and edge-to-edge mode enabled but can reproduce on a real Pixel 8 Pro with Android 15

Attachments

image
flipflop97 commented 2 days ago

Update: Just tested this on my real Pixel 8 Pro with Android 15, and the issue also appears there