Skip to content

Commit f6674c8

Browse files
committed
fix(ios): imageRotation to behave like android (90 = rotation right)
1 parent 20ffb73 commit f6674c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/image/index.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ export class Img extends ImageBase {
458458
transformers.push(NSImageRoundAsCircleTransformer.transformer());
459459
}
460460
if (this.imageRotation !== 0 && !isNaN(this.imageRotation)) {
461-
transformers.push(SDImageRotationTransformer.transformerWithAngleFitSize(this.imageRotation *(Math.PI/180), true));
461+
transformers.push(SDImageRotationTransformer.transformerWithAngleFitSize(-this.imageRotation *(Math.PI/180), true));
462462
}
463463
if (this.roundBottomLeftRadius || this.roundBottomRightRadius || this.roundTopLeftRadius || this.roundTopRightRadius) {
464464
transformers.push(

0 commit comments

Comments
 (0)