-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[v3] App crashes when using React.StrictMode #4172
Copy link
Copy link
Open
Labels
Platform: AndroidThis issue is specific to AndroidThis issue is specific to AndroidPlatform: iOSThis issue is specific to iOSThis issue is specific to iOSRepro providedA reproduction with a snack or repo is providedA reproduction with a snack or repo is provided
Metadata
Metadata
Assignees
Labels
Platform: AndroidThis issue is specific to AndroidThis issue is specific to AndroidPlatform: iOSThis issue is specific to iOSThis issue is specific to iOSRepro providedA reproduction with a snack or repo is providedA reproduction with a snack or repo is provided
Description
Gesture Handler v3 seems incompatible with
React.StrictMode. When the app is wrapped in strict mode:*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Handler for tag 1 does not exists'Simulator.Screen.Recording.-.iPhone.17.Pro.-.2026-05-13.at.10.38.39-optimised.mov
untitled-optimised.mp4
Removing
React.StrictModemakes the gestures work both on Android & iOS.PS: The repro uses Community CLI, but I'm also had an error on Expo in my existing code. Though the error was different:
Steps to reproduce
git@github.com:satya164/GestureHandlerStrictModeRepro.gitApp.tsxto removeReact.StrictModeand observe that the gestures workA link to a Gist, an Expo Snack or a link to a repository based on this template that reproduces the bug.
https://github.com/satya164/GestureHandlerStrictModeRepro
Gesture Handler version
3.0.0-beta.4
React Native version
0.85.3
Platforms
Android, iOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
None
Build type
Debug mode
Device
iOS simulator
Device model
No response
Acknowledgements
Yes