mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-23 17:28:08 +00:00
correct small edge case in rotation option
This commit is contained in:
parent
2c87364016
commit
74cb9f3a32
@ -308,8 +308,8 @@ RCT_EXPORT_METHOD(stopCapture) {
|
||||
CGImageRef cgImage;
|
||||
cgImage = CGImageSourceCreateImageAtIndex(source, 0, NULL);
|
||||
|
||||
float rotation = [[options objectForKey:@"rotation"] floatValue];
|
||||
if (rotation) {
|
||||
if ([options objectForKey:@"rotation"]) {
|
||||
float rotation = [[options objectForKey:@"rotation"] floatValue];
|
||||
cgImage = [self CGImageRotatedByAngle:cgImage angle:rotation];
|
||||
} else {
|
||||
// Get metadata orientation
|
||||
|
Loading…
x
Reference in New Issue
Block a user