Skip to content

GestureDetector dont working when display none #4045

@leruse4ka

Description

@leruse4ka

Description

If a component's display is changed to none, GestureDetector stops working on iOS.

There was already an issue like this - #3937

Is it possible to fix this issue for v2.30?

Steps to reproduce

Copy from #3937

Steps to reproduce
In the provided Slack, here are some steps to try to see when it works and when it starts failing:

Click the blue square, see that the alert shows
Click "Hide / Show"
Click "Hide / Show again"
Click the blue square, see that the alert still shows
Click "Hide / Show"
Click "Set random views"
Click "Hide / Show" again
Click the blue square, see that no alert is shown <- BUG
A link to a Gist, an Expo Snack or a link to a repository based on this template that reproduces the bug.

A link to a Gist, an Expo Snack or a link to a repository based on this template that reproduces the bug.

https://snack.expo.dev/@appandflow/moody-orange-apples

Gesture Handler version

2.30.0

React Native version

0.82.1

Platforms

iOS

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

New Architecture (Fabric)

Build type

Debug mode

Device

iOS simulator

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: iOSThis issue is specific to iOSRepro providedA reproduction with a snack or repo is provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions