[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:
Adam Roth 2015-08-11 08:41:30 -07:00
Родитель 4d817245f7
Коммит 57a6a02dff
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
}