Skip to content

Commit 5c4d2d7

Browse files
committed
Merge branch 'rnmobile/prevent-image-flicker-when-uploading' of https://github.com/wordpress/gutenberg into rnmobile/prevent-image-flicker-when-uploading
2 parents ee04f79 + 541a242 commit 5c4d2d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/components/src/mobile/image/index.native.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ const ImageComponent = ( {
8686

8787
if ( url.startsWith( 'file:///' ) ) {
8888
setLocalURL( url );
89+
setNetworkURL( null );
90+
setNetworkImageLoaded( false );
8991
} else if ( url.startsWith( 'https://' ) ) {
9092
if ( Platform.isIOS ) {
9193
setNetworkURL( url );

0 commit comments

Comments
 (0)