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 5e1605f commit 0ccd36eCopy full SHA for 0ccd36e
1 file changed
packages/react-native-gesture-handler/src/v3/hooks/callbacks/stateChangeHandler.ts
@@ -38,6 +38,11 @@ export function getStateChangeHandler<THandlerData>(
38
(oldState === State.BEGAN || oldState === State.UNDETERMINED) &&
39
state === State.ACTIVE
40
) {
41
+ // If the native recognizer skipped the BEGAN state, we still need to call the callback
42
+ if (oldState === State.UNDETERMINED) {
43
+ runCallback(CALLBACK_TYPE.BEGAN, callbacks, event);
44
+ }
45
+
46
runCallback(CALLBACK_TYPE.START, callbacks, event);
47
} else if (oldState !== state && state === State.END) {
48
if (oldState === State.ACTIVE) {
0 commit comments