Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,8 @@ type GalleryProps<T> = EventsCallbacks & {
loop?: boolean;
onScaleChange?: (scale: number) => void;
onScaleChangeRange?: { start: number; end: number };

containerTestID?: string
};

const GalleryComponent = <T extends any>(
Expand All @@ -957,6 +959,7 @@ const GalleryComponent = <T extends any>(
loop = false,
onScaleChange,
onScaleChangeRange,
containerTestID,
...eventsCallbacks
}: GalleryProps<T>,
ref: GalleryReactRef
Expand Down Expand Up @@ -1034,7 +1037,7 @@ const GalleryComponent = <T extends any>(

return (
<GestureHandlerRootView style={[styles.container, style]}>
<Animated.View style={[styles.rowContainer, animatedStyle]}>
<Animated.View style={[styles.rowContainer, animatedStyle]} testID={containerTestID}>
{data.map((item: any, i) => {
const isFirst = i === 0;

Expand Down