Skip to content

Commit cdd6619

Browse files
committed
Remove platform checks
1 parent ad05004 commit cdd6619

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ export const BaseButton = (props: BaseButtonProps) => {
4242
return;
4343
}
4444

45-
// iOS, macOS. Web has its own implementation of button.
46-
if (Platform.OS !== 'android') {
47-
onActiveStateChange?.(true);
48-
}
45+
onActiveStateChange?.(true);
4946

5047
longPressDetected.current = false;
5148
if (onLongPress) {
@@ -56,10 +53,6 @@ export const BaseButton = (props: BaseButtonProps) => {
5653
};
5754

5855
const onActivate = (e: CallbackEventType) => {
59-
if (Platform.OS === 'android' && e.pointerInside) {
60-
onActiveStateChange?.(true);
61-
}
62-
6356
if (!e.pointerInside && longPressTimeout.current !== undefined) {
6457
clearTimeout(longPressTimeout.current);
6558
longPressTimeout.current = undefined;

0 commit comments

Comments
 (0)