Skip to content

Commit

Permalink
base
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohan-cp committed Apr 26, 2024
1 parent 6b1eccf commit 8d2f4a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/mobile/src/components/GalleryTouchableOpacity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { GalleryElementTrackingProps, useTrack } from '~/shared/contexts/Analyti

export type GalleryTouchableOpacityProps = {
withoutFeedback?: boolean;
activeOpacity?: number;
} & GalleryElementTrackingProps &
TouchableOpacityProps;

Expand All @@ -25,6 +26,7 @@ export function GalleryTouchableOpacity({
onPress,
properties,
withoutFeedback,
activeOpacity = 0.2,
...props
}: GalleryTouchableOpacityProps) {
const track = useTrack();
Expand Down Expand Up @@ -62,7 +64,7 @@ export function GalleryTouchableOpacity({
}

return (
<TouchableOpacity {...props} onPress={handlePress}>
<TouchableOpacity {...props} onPress={handlePress} activeOpacity={activeOpacity}>
{children}
</TouchableOpacity>
);
Expand Down

0 comments on commit 8d2f4a0

Please sign in to comment.