Skip to content

Commit

Permalink
update change
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Jan 2, 2024
1 parent efe12b3 commit 0ab7aad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ function Lightbox({isAuthTokenRequired, source, onScaleChanged, onPress, onError
isAuthTokenRequired={isAuthTokenRequired}
onLoadEnd={() => setFallbackLoaded(true)}
onLoad={(e) => {
const width = e.nativeEvent?.width || 0;
const height = e.nativeEvent?.height || 0;
const width = (e.nativeEvent?.width || 0) * PixelRatio.get();
const height = (e.nativeEvent?.height || 0) * PixelRatio.get();

if (imageDimensions?.lightboxSize != null) {
return;
Expand Down

0 comments on commit 0ab7aad

Please sign in to comment.