Skip to content

tapNavigation isn't working on IOS device #15

@qduborper

Description

@qduborper

Hi,
tapNavigation feature seems not working on IOS. The event from TapGestureHandler component doesn't fire, maybe due to elements which override the background track.

After making some tests, wrapping TapGestureHandler around trackContainer View seems to fix the issue. We can nest multiple gesture handler so it'll not affect the PanGestureHandler one. Like this:

<TapGestureHandler
    onHandlerStateChange={this.onTap}
    maxDurationMs={2000}
    hitSlop={{ top: 20, bottom: 20, left: 0, right: 0 }}
    >
        <View style={styles.trackContainer} onLayout={this.onLayoutContainer}>

What do you think ?

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