We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad05004 commit cdd6619Copy full SHA for cdd6619
1 file changed
packages/react-native-gesture-handler/src/v3/components/GestureButtons.tsx
@@ -42,10 +42,7 @@ export const BaseButton = (props: BaseButtonProps) => {
42
return;
43
}
44
45
- // iOS, macOS. Web has its own implementation of button.
46
- if (Platform.OS !== 'android') {
47
- onActiveStateChange?.(true);
48
- }
+ onActiveStateChange?.(true);
49
50
longPressDetected.current = false;
51
if (onLongPress) {
@@ -56,10 +53,6 @@ export const BaseButton = (props: BaseButtonProps) => {
56
53
};
57
54
58
55
const onActivate = (e: CallbackEventType) => {
59
- if (Platform.OS === 'android' && e.pointerInside) {
60
61
62
-
63
if (!e.pointerInside && longPressTimeout.current !== undefined) {
64
clearTimeout(longPressTimeout.current);
65
longPressTimeout.current = undefined;
0 commit comments