diff --git a/packages/react-native-gesture-handler/src/components/GestureButtons.tsx b/packages/react-native-gesture-handler/src/components/GestureButtons.tsx index 2832752605..fd3670cc13 100644 --- a/packages/react-native-gesture-handler/src/components/GestureButtons.tsx +++ b/packages/react-native-gesture-handler/src/components/GestureButtons.tsx @@ -240,6 +240,7 @@ class InnerBorderlessButton extends React.Component StyleSheet.flatten(style), [style]); const { @@ -273,11 +277,17 @@ export default function GestureHandlerButton({ style, ...rest }: ButtonProps) { collapsable={false} style={[ styles.contents, - (!overflow || overflow === 'hidden') && styles.overflowHidden, + !borderless && + (!overflow || overflow === 'hidden') && + styles.overflowHidden, buttonRestingStyle, restStyle, ]}> - + ); diff --git a/packages/react-native-gesture-handler/src/v3/components/GestureButtons.tsx b/packages/react-native-gesture-handler/src/v3/components/GestureButtons.tsx index a61a0a44b7..09fdadab0d 100644 --- a/packages/react-native-gesture-handler/src/v3/components/GestureButtons.tsx +++ b/packages/react-native-gesture-handler/src/v3/components/GestureButtons.tsx @@ -172,6 +172,8 @@ export const BorderlessButton = (props: BorderlessButtonProps) => { return (