question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

onHandlerStateChange not firing sometimes on iOS

See original GitHub issue

Expected behavior

On Android, the events fire as expected.

giphy

15:39:42.515: { id: 'scroll',
15:39:42.515:   oldStateName: 'UNDETERMINED',
15:39:42.515:   newStateName: 'BEGAN' }
15:39:42.519: { id: 'drawer',
15:39:42.519:   oldStateName: 'UNDETERMINED',
15:39:42.519:   newStateName: 'BEGAN' }
15:39:42.521: { id: 'masterdrawer',
15:39:42.521:   oldStateName: 'UNDETERMINED',
15:39:42.521:   newStateName: 'BEGAN' }
15:39:42.570: { id: 'drawer', oldStateName: 'BEGAN', newStateName: 'ACTIVE' }
15:39:44.797: { id: 'scroll', oldStateName: 'BEGAN', newStateName: 'ACTIVE' }
15:39:44.800: { id: 'masterdrawer',
15:39:44.800:   oldStateName: 'BEGAN',
15:39:44.800:   newStateName: 'FAILED' }
15:39:49.217: { id: 'drawer', oldStateName: 'ACTIVE', newStateName: 'END' }
15:39:49.217: 'END OFFSET', -425.2704223632812
15:39:49.235: { id: 'scroll', oldStateName: 'ACTIVE', newStateName: 'END' }
15:39:50.779: { id: 'scroll',
15:39:50.779:   oldStateName: 'UNDETERMINED',
15:39:50.779:   newStateName: 'BEGAN' }
15:39:50.781: { id: 'drawer',
15:39:50.781:   oldStateName: 'UNDETERMINED',
15:39:50.781:   newStateName: 'BEGAN' }
15:39:50.782: { id: 'masterdrawer',
15:39:50.782:   oldStateName: 'UNDETERMINED',
15:39:50.782:   newStateName: 'BEGAN' }
15:39:50.878: { id: 'drawer', oldStateName: 'BEGAN', newStateName: 'ACTIVE' }
15:39:51.589: { id: 'scroll', oldStateName: 'BEGAN', newStateName: 'END' }
15:39:51.590: { id: 'drawer', oldStateName: 'ACTIVE', newStateName: 'END' }
15:39:51.597: { id: 'masterdrawer',
15:39:51.597:   oldStateName: 'BEGAN',
15:39:51.597:   newStateName: 'FAILED' }

Actual behavior

On iOS, only the inner pan is firing (@kmagiera you will know what I mean by this).

giphy-1

15:44:04: { id: 'drawer', oldStateName: 'UNDETERMINED', newStateName: 'BEGAN' }
15:44:04: { id: 'drawer', oldStateName: 'BEGAN', newStateName: 'ACTIVE' }
15:44:09: { id: 'drawer', oldStateName: 'ACTIVE', newStateName: 'END' }
15:44:09: 'END OFFSET', -436.5

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
kmagieracommented, Mar 31, 2022

hey all! It’s been a while since last activity on this issue. With the new API introduced last year, we no longer expect library users to interface with state change events (the callback is still there but no one really should be using it). Also, in the meantime we’ve changed a number of things under the hood so if anyone here have encountered this problem with a recent version or is willing to help by trying to repro it right now please respond in the comment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

onHandlerStateChange not firing sometimes on iOS · Issue #9 ...
This issue is related to problems with gesture handlers · The issue will be closed automatically if it remains inactive · This issue...
Read more >
react native gesture handler not firing events - Stack Overflow
I'm attempting to use the PanGestureHandler component from the react-native-gesture-handler library. The main reason behind this is to move the ...
Read more >
react-native-gesture-handler - Bountysource
onHandlerStateChange not firing sometimes on iOS $ 0. Created 5 years ago in software-mansion/react-native-gesture-handler with 4 comments. Expected behavior.
Read more >
Troubleshooting iOS - OneSignal Documentation
"APNS Delegate Never Fired" is a timeout message for when iOS doesn't fire a success or failure message if a connection is not...
Read more >
IPhone Swipe Up Not Working? Here's 6 Ways To Fix It
Sometimes, your device's screen alone might be the culprit. In this article, we will be looking at various methods to help solve this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found