Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First long press after a tap triggers onPress #200

Open
MarioUnlam opened this issue Dec 11, 2020 · 0 comments
Open

First long press after a tap triggers onPress #200

MarioUnlam opened this issue Dec 11, 2020 · 0 comments

Comments

@MarioUnlam
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant