Skip to content

Commit 136c610

Browse files
TechWilklukewalczak
authored andcommitted
fix: hitslop passed to touchable (#4678)
1 parent eb27d4a commit 136c610

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/Button/Button.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ const Button = (
185185
accessibilityLabel,
186186
accessibilityHint,
187187
accessibilityRole = 'button',
188+
hitSlop,
188189
onPress,
189190
onPressIn,
190191
onPressOut,
@@ -358,6 +359,7 @@ const Button = (
358359
accessibilityRole={accessibilityRole}
359360
accessibilityState={{ disabled }}
360361
accessible={accessible}
362+
hitSlop={hitSlop}
361363
disabled={disabled}
362364
rippleColor={rippleColor}
363365
style={getButtonTouchableRippleStyle(touchableStyle, borderWidth)}

0 commit comments

Comments
 (0)