File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -458,7 +458,7 @@ const GalleryImageThumbnail = <
458458 setLoadingImage ( false ) ;
459459 setLoadingImageError ( true ) ;
460460 } }
461- onLoadEnd = { ( ) => setLoadingImage ( false ) }
461+ onLoadEnd = { ( ) => setTimeout ( ( ) => setLoadingImage ( false ) , 0 ) }
462462 onLoadStart = { ( ) => setLoadingImage ( true ) }
463463 resizeMode = { thumbnail . resizeMode }
464464 style = { [
Original file line number Diff line number Diff line change @@ -72,12 +72,12 @@ export const useAnimatedGalleryStyle = ({
7272 { scaleX : - 1 } ,
7373 { translateY : yScaleOffset } ,
7474 {
75- translateX : - translateX . value - xScaleOffset ,
75+ translateX : - xScaleOffset ,
7676 } ,
7777 { scale : oneEighth } ,
7878 ] ,
7979 } ;
80- } , [ ] ) ;
80+ } , [ index ] ) ;
8181
8282 return [ animatedGalleryStyle , animatedStyles ] ;
8383} ;
You can’t perform that action at this time.
0 commit comments