diff options
Diffstat (limited to 'src/view/com/util/images/ImageLayoutGrid.tsx')
-rw-r--r-- | src/view/com/util/images/ImageLayoutGrid.tsx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/view/com/util/images/ImageLayoutGrid.tsx b/src/view/com/util/images/ImageLayoutGrid.tsx index 7475a96c3..830040ba6 100644 --- a/src/view/com/util/images/ImageLayoutGrid.tsx +++ b/src/view/com/util/images/ImageLayoutGrid.tsx @@ -1,5 +1,6 @@ import React from 'react' import {StyleProp, StyleSheet, View, ViewStyle} from 'react-native' +import {AnimatedRef} from 'react-native-reanimated' import {AppBskyEmbedImages} from '@atproto/api' import {PostEmbedViewContext} from '#/view/com/util/post-embeds/types' @@ -8,7 +9,10 @@ import {GalleryItem} from './Gallery' interface ImageLayoutGridProps { images: AppBskyEmbedImages.ViewImage[] - onPress?: (index: number) => void + onPress?: ( + index: number, + containerRef: AnimatedRef<React.Component<{}, {}, any>>, + ) => void onLongPress?: (index: number) => void onPressIn?: (index: number) => void style?: StyleProp<ViewStyle> @@ -36,7 +40,10 @@ export function ImageLayoutGrid({style, ...props}: ImageLayoutGridProps) { interface ImageLayoutGridInnerProps { images: AppBskyEmbedImages.ViewImage[] - onPress?: (index: number) => void + onPress?: ( + index: number, + containerRef: AnimatedRef<React.Component<{}, {}, any>>, + ) => void onLongPress?: (index: number) => void onPressIn?: (index: number) => void viewContext?: PostEmbedViewContext |