instea/react-native-popup-menu

First long press after a tap triggers onPress

MarioUnlam opened this issue · 0 comments

I'm having a weird problem with a MenuTrigger that has both onPress and onLongPress actions. This is my MenuTrigger:

<MenuTrigger triggerOnLongPress={true} onAlternativeAction={() => openFullScreen(imageSource.uri)}>
    <Image source={imageSource} style={styles.pictureHolder} />
</MenuTrigger>

If I do a long press after mount, it works fine, but if I tap the image, the next long press triggers an onPress. Any following long presses work fine, but every time I tap the image, it "breaks" the next long press. The alternative action can be anything, even a "console.log()" breaks the next long press.

I'm using the latest version (0.15.10) and React Native 0.63.2 (no Expo).