mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
[CameraRoll] Image orientation fix for #1845
Summary:
PR for #1845
Use ALAssetOrientationUp for image orientation.
Originally committed at b34a85f4da
Closes https://github.com/facebook/react-native/pull/2214
Github Author: Adam Roth <adamjroth@gmail.com>
This commit is contained in:
parent
4d817245f7
commit
57a6a02dff
@ -103,7 +103,7 @@ static UIImage *RCTScaledImageForAsset(ALAssetRepresentation *representation,
|
||||
|
||||
if (imageRef) {
|
||||
UIImage *image = [UIImage imageWithCGImage:imageRef scale:scale
|
||||
orientation:(UIImageOrientation)representation.orientation];
|
||||
orientation:UIImageOrientationUp];
|
||||
CGImageRelease(imageRef);
|
||||
return image;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user