File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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 ] ( ) {
You can’t perform that action at this time.
0 commit comments