Skip to content

Improve react-native-gesture-handler::pressable handling #1738

Closed
@sidferreira

Description

@sidferreira

Describe the Feature

I want to start acknowledging that's not RNTL responsibility, but asking for help to improve it.

As customer (and fan) I can offer some help but I believe https://github.com/callstack/react-native-testing-library and https://github.com/software-mansion/react-native-gesture-handler would solve these issues WAY faster.

At this moment, while the app is running, the RNGH::Pressable will deliver a very similar experience to RN::Pressable, but if we run tests, many things start to differ.

Some items are very easy to solve (like missing a11y states) but some are trickier ( RN::Pressable can respond to fireEvent(el, 'click') but RNGH::Pressable can't).

I'm creating this issue to get some help on this.

Known Differences on Testing:

  • RNGH::Pressable won't work with userEvent.press
  • RNGH::Pressable won't work with fireEvent(el, 'click')

Possible Implementations

#1741
software-mansion/react-native-gesture-handler#3357

Related Issues

software-mansion/react-native-gesture-handler#2385

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions