Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix lightbox spinner (#6561)

* refactor imageitem useanimatedreaction logic

* revert copy/paste fix

* revert last commit

* Fix conditions

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>

authored by

Paul Coroneos
Dan Abramov
and committed by
GitHub
50287533 058a29c6

+6 -6
+3 -3
src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.android.tsx
··· 363 363 return transforms.get().isResting && !hasLoaded 364 364 }, 365 365 (show, prevShow) => { 366 - if (show && !prevShow) { 367 - runOnJS(setShowLoader)(false) 368 - } else if (!prevShow && show) { 366 + if (!prevShow && show) { 369 367 runOnJS(setShowLoader)(true) 368 + } else if (prevShow && !show) { 369 + runOnJS(setShowLoader)(false) 370 370 } 371 371 }, 372 372 )
+3 -3
src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx
··· 187 187 return transforms.get().isResting && !hasLoaded 188 188 }, 189 189 (show, prevShow) => { 190 - if (show && !prevShow) { 191 - runOnJS(setShowLoader)(false) 192 - } else if (!prevShow && show) { 190 + if (!prevShow && show) { 193 191 runOnJS(setShowLoader)(true) 192 + } else if (prevShow && !show) { 193 + runOnJS(setShowLoader)(false) 194 194 } 195 195 }, 196 196 )