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

Requires long press on Android but not iOS #33

Open
anthonywschmidt opened this issue Mar 14, 2019 · 3 comments
Open

Requires long press on Android but not iOS #33

anthonywschmidt opened this issue Mar 14, 2019 · 3 comments

Comments

@anthonywschmidt
Copy link

I noticed that this control requires users to long press the buttonComponent on Android but on iOS a simple quick tap opens the tooltip. This is inconsistent.

The best result would to have this as a configurable option. Ideally I'd like to have it always open on a quick single tap but I'm sure others would like it remaining as a long press.

Here's my implementation:

<PopoverTooltip
        buttonComponent={
                  <Image
                  resizeMode={"cover"}
                  style={{width: 80, height: 80, borderRadius: 40}}
                  source={{uri: this.state.meInfo.profileImageUrl}}
                  />
        }
       items={ ...removed for simplicity... }
/>
@shibbyy
Copy link

shibbyy commented May 13, 2019

+1 @anthonywschmidt

@mightyorange
Copy link

Yeah, there is same issue on my side when i use android..
Does anyone has temporary solution?

@mightyorange
Copy link

I may find solution:
i dig into source code, find that it accepts a "delayLongPress" prop.
so :
<PopoverTooltip delayLongPress={0} />
it works ;)

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

3 participants