Skip to content

Commit 270205d

Browse files
committed
fix: add pointerEvents: ‘box-none’ to ItemLayout
1 parent 9c0589b commit 270205d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/mean-needles-rhyme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-native-reanimated-carousel": patch
3+
---
4+
5+
Add pointerEvents: ‘box-none’ to ItemLayout component to allow touches for children components outside item boundaries

src/components/ItemLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export const ItemLayout: React.FC<{
7373
width: width || "100%",
7474
height: height || "100%",
7575
position: "absolute",
76+
pointerEvents: "box-none",
7677
},
7778
animatedStyle,
7879
]}

0 commit comments

Comments
 (0)