diff options
author | dan <dan.abramov@gmail.com> | 2024-11-09 22:41:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-09 22:41:14 +0000 |
commit | 42abd97f61b6813ab7dc6126d167b4130532326a (patch) | |
tree | ed027d346a27170ce60862cbd6849bbc63302157 /src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.tsx | |
parent | 2d73c5a24cf8ad06dbebcf44c8f4f053eedda5a4 (diff) | |
download | voidsky-42abd97f61b6813ab7dc6126d167b4130532326a.tar.zst |
[Lightbox] Always rely on Expo Image cache (#6189)
* Inline useImageAspectRatio * Switch AutoSizedImage to read dimensions from Expo Image cache * Include thumbnail dimensions in image data * Use dims from Expo Image cache in lightbox * Fix wiring so all thumbnails get dimensions * Fix type * Oops
Diffstat (limited to 'src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.tsx')
-rw-r--r-- | src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.tsx b/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.tsx index 543fad772..b41e16383 100644 --- a/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.tsx +++ b/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.tsx @@ -5,6 +5,7 @@ import {View} from 'react-native' import {PanGesture} from 'react-native-gesture-handler' import {SharedValue} from 'react-native-reanimated' +import {Dimensions} from '#/lib/media/types' import { Dimensions as ImageDimensions, ImageSource, @@ -16,6 +17,7 @@ type Props = { onRequestClose: () => void onTap: () => void onZoom: (scaled: boolean) => void + onLoad: (dims: Dimensions) => void isScrollViewBeingDragged: boolean showControls: boolean measureSafeArea: () => { |