Skip to content

Commit

Permalink
Merge branch 'rnmobile/prevent-image-flicker-when-uploading' of https…
Browse files Browse the repository at this point in the history
…://github.com/wordpress/gutenberg into rnmobile/prevent-image-flicker-when-uploading
  • Loading branch information
derekblank committed Jan 30, 2024
2 parents ee04f79 + 541a242 commit 5c4d2d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/components/src/mobile/image/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ const ImageComponent = ( {

if ( url.startsWith( 'file:///' ) ) {
setLocalURL( url );
setNetworkURL( null );
setNetworkImageLoaded( false );
} else if ( url.startsWith( 'https://' ) ) {
if ( Platform.isIOS ) {
setNetworkURL( url );
Expand Down

0 comments on commit 5c4d2d7

Please sign in to comment.