Fix fixOrientation in captureStill always returns true (it returns NSCFBoolean which evaluates to true even if the value is false) (#729)
This commit is contained in:
parent
41d3292b6b
commit
dd8c5c1578
|
@ -602,7 +602,7 @@ RCT_EXPORT_METHOD(hasFlash:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRej
|
|||
if ([options objectForKey:@"rotation"]) {
|
||||
float rotation = [[options objectForKey:@"rotation"] floatValue];
|
||||
rotatedCGImage = [self newCGImageRotatedByAngle:cgImage angle:rotation];
|
||||
} else if ([options objectForKey:@"fixOrientation"]){
|
||||
} else if ([[options objectForKey:@"fixOrientation"] boolValue] == YES) {
|
||||
// Get metadata orientation
|
||||
int metadataOrientation = [[imageMetadata objectForKey:(NSString *)kCGImagePropertyOrientation] intValue];
|
||||
|
||||
|
|
Loading…
Reference in New Issue