diff --git a/.changeset/mean-needles-rhyme.md b/.changeset/mean-needles-rhyme.md new file mode 100644 index 0000000..29c02c4 --- /dev/null +++ b/.changeset/mean-needles-rhyme.md @@ -0,0 +1,5 @@ +--- +"react-native-reanimated-carousel": patch +--- + +Add pointerEvents: ‘box-none’ to ItemLayout component to allow touches for children components outside item boundaries diff --git a/src/components/ItemLayout.tsx b/src/components/ItemLayout.tsx index 1218a38..fb43268 100644 --- a/src/components/ItemLayout.tsx +++ b/src/components/ItemLayout.tsx @@ -73,6 +73,7 @@ export const ItemLayout: React.FC<{ width: width || "100%", height: height || "100%", position: "absolute", + pointerEvents: "box-none", }, animatedStyle, ]}