repodio/react-native-scrubber

tapNavigation isn't working on IOS device

Opened this issue · 1 comments

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 ?

Also confirming this doesn't work on iOS