mirror of
https://github.com/status-im/react-native-camera.git
synced 2026-08-31 05:31:07 +00:00
Fix iOS orientation logic typo (#573)
- This typo results in all roughly face-up still pictures being interpreted as portrait shots.
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
if(acceleration.x <= -0.75) {
|
||||
return UIInterfaceOrientationLandscapeRight;
|
||||
}
|
||||
if(acceleration.y >= -0.75) {
|
||||
if(acceleration.y <= -0.75) {
|
||||
return UIInterfaceOrientationPortrait;
|
||||
}
|
||||
if(acceleration.y >= 0.75) {
|
||||
|
||||
Reference in New Issue
Block a user