Skip to content

iOS Fabric: Gesture.tap() worked on 0.78.2, no longer at 0.80 #3581

@alex-strae

Description

@alex-strae

Description

import {
    Gesture,
    GestureDetector,
} from 'react-native-gesture-handler';

/../

const doubleTap = Gesture.Tap()
        .maxDuration(1250)
        .numberOfTaps(2)
        .onStart(() => {
            if (prodInfo && typeof prodInfo !== "string") {
            handleConfirmStart(prodInfo.start, false);
            handleConfirmStop(prodInfo.stop, false);
            }
        });

/../

return (
<View>
 <GestureDetector gesture={Gesture.Exclusive(doubleTap)}>
                    <Text style={styles.txt50}>
                        {" - "}</Text>
                </GestureDetector>
</View>)

This used to work on 0.78.2. It no longer does. It still works on Android and Fabric though. I have tried with a simple console.log in onStart() which does not fire either.

Please let me know it anyone else is experiencing the same. If not, it might be that I'm specifically looking for double taps on links in another nav screen. Not sure why this would stop working on 0.80 though.

It is the same in both debug on iPhone 16 Pro simulator and release on real iPhone 14 device. Both on iOS 18 (which worked on 78.2).

Steps to reproduce

Please see above.

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

www.unfortunatelynot.com

Gesture Handler version

2.26.0

React Native version

0.80.0

Platforms

iOS

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

New Architecture (Fabric)

Build type

Debug mode

Device

iOS simulator

Device model

iPhone 16 Pro

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: GesturesThis issue is related to problems with gestures (v2.0 API)Can reproIt is confirmed we can reproduce the issueImportantThis seem to be a serious issue and we will need to take a deeper look into it some time soonPlatform: iOSThis issue is specific to iOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions