We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c1c7c12 + 3c2df04 commit 9e780bcCopy full SHA for 9e780bc
src/camera.ios.ts
@@ -94,7 +94,9 @@ class UIImagePickerControllerDelegateImpl extends NSObject implements UIImagePic
94
95
private setImageAssetAndCallCallback(imageAsset: imageAssetModule.ImageAsset) {
96
if (this._keepAspectRatio) {
97
- let isPictureLandscape = imageAsset.nativeImage.size.width > imageAsset.nativeImage.size.height;
+ let pictureWidth = imageAsset.nativeImage ? imageAsset.nativeImage.size.width : imageAsset.ios.pixelWidth;
98
+ let pictureHeight = imageAsset.nativeImage ? imageAsset.nativeImage.size.height : imageAsset.ios.pixelHeight;
99
+ let isPictureLandscape = pictureWidth > pictureHeight;
100
let areOptionsLandscape = this._width > this._height;
101
if (isPictureLandscape !== areOptionsLandscape) {
102
let oldWidth = this._width;
0 commit comments