Skip to content

Commit 58ccf57

Browse files
committed
Buttons work
1 parent c1548cd commit 58ccf57

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/react-native-gesture-handler/src/v3/components/GestureButtons.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,17 @@ export const BaseButton = (props: BaseButtonProps) => {
9595
props.onFinalize?.(e);
9696
};
9797

98+
const tvProps = Platform.isTV
99+
? {
100+
isTVSelectable: rest.focusable ?? rest.isTVSelectable ?? false,
101+
}
102+
: null;
103+
98104
return (
99105
<RawButton
100106
style={[style, Platform.OS === 'ios' && { cursor: undefined }]}
101107
{...rest}
108+
{...tvProps}
102109
onBegin={onBegin}
103110
onActivate={onActivate}
104111
onDeactivate={onDeactivate}

0 commit comments

Comments
 (0)