-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
Description
The initial discussion can be found at #3347, but I decided to start a new one to set things fresh.
There's also an issue with RNTL callstack/react-native-testing-library#1738
The base line is: react-native-gesture-handler/Pressable
is missing some features from react-native/Pressable
causing the first not to work like the second with react-native-testing-library
.
Some of the issues I found:
- Missing A11yState handling
- Even with Pressable disabled, fireEvent.press will trigger events
- Won't work with
fireEvent(el, 'click')
- Won't work with
userEvents.press(el)
I found some initial solutions (Draft PR below) but I have limited time for it.
Steps to reproduce
Snack or a link to a repository
Gesture Handler version
main
React Native version
0.76
Platforms
iOS
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes