Skip to content

Commit 79ebdd4

Browse files
author
farfromrefuge
committed
Merge remote-tracking branch 'origin/master'
2 parents f8e10f5 + f44ef05 commit 79ebdd4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/image/index.ios.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,11 @@ export class Img extends ImageBase {
430430
this.isLoading = true;
431431
let options = SDWebImageOptions.ScaleDownLargeImages | SDWebImageOptions.AvoidAutoSetImage;
432432

433+
if (this.placeholderImageUri) {
434+
this.placeholderImage = this.getUIImage(this.placeholderImageUri);
435+
this._setNativeImage(this.placeholderImage, animate);
436+
}
437+
433438
if (this.noCache) {
434439
// const key = uri.absoluteString;
435440
// const imagePipeLine = getImagePipeline();
@@ -512,8 +517,8 @@ export class Img extends ImageBase {
512517
placeholderImage: UIImage;
513518
@needRequestImage
514519
[placeholderImageUriProperty.setNative]() {
515-
this.placeholderImage = this.getUIImage(this.placeholderImageUri);
516-
this.initImage();
520+
// this.placeholderImage = this.getUIImage(this.placeholderImageUri);
521+
// this.initImage();
517522
}
518523

519524
[failureImageUriProperty.setNative]() {

0 commit comments

Comments
 (0)