Skip to content

Ignoring user orientation settings #624

Open
@Zigulich

Description

@Zigulich

Describe the bug
I had several problems with the user orientation being blocked when capturing a photo. Even changing the android:screenOrientation property or locking the rotation with third-party plugins, I realized that the code itself had a function to "Rotate the image according to device orientation, even when UI orientation is locked"

To Reproduce
Steps to reproduce the behavior:

  1. Call cameraRef.current.capture() with the cell phone in landscape mode
  2. Even if the orientation is locked, the capture is done in landscape mode

Expected behavior
The image orientation must be defined by the user, and not forced.
The best option would be to add a property to the capture function, determining whether or not the orientation should be locked.

Screenshots
image
Locate at /node_modules/react-native-camera-kit/android/src/main/java/com/rncamerakit/CKCamera.kt:161

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions