mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 17:58:20 +00:00
adjusted rotation should be that of camera, not display (#393)
This commit is contained in:
parent
696d55af01
commit
6834e594f4
@ -305,7 +305,7 @@ public class RCTCamera {
|
|||||||
cameraInfo.rotation = rotation;
|
cameraInfo.rotation = rotation;
|
||||||
// TODO: take in account the _orientation prop
|
// TODO: take in account the _orientation prop
|
||||||
|
|
||||||
setAdjustedDeviceOrientation(displayRotation);
|
setAdjustedDeviceOrientation(rotation);
|
||||||
camera.setDisplayOrientation(displayRotation);
|
camera.setDisplayOrientation(displayRotation);
|
||||||
|
|
||||||
Camera.Parameters parameters = camera.getParameters();
|
Camera.Parameters parameters = camera.getParameters();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user