teslamotors / react-native-camera-kit

A high performance, easy to use, rock solid camera library for React Native apps.
MIT License
2.49k stars 590 forks source link

iOS landscape orientation camera preview not following screen orientation #670

Closed psteh closed 4 weeks ago

psteh commented 4 months ago

Describe the bug I need to force user to landscape mode when taking pictures. Using https://github.com/yamill/react-native-orientation to lock into landscape mode but the camera preview is not following the screen orientation

To Reproduce Steps to reproduce the behavior: Add Orientation.lockToLandscapeLeft()

Expected behavior Camera preview should show base on the orientation

Screenshots image image

Smartphone (please complete the following information):

thatrndev commented 3 months ago

+1 Same issue with me.

scarlac commented 4 weeks ago

Try out v14.0.0 that was just released. In addition, please lock the UI unless you know what you are doing, and instead use the new onOrientationChange event handler to counter-rotate UI elements if needed (see the example project): image