wookoinc / react-native-popover-tooltip

ReactNative component - tooltip menu
MIT License
63 stars 63 forks source link

Requires long press on Android but not iOS #33

Open anthonywschmidt opened 5 years ago

anthonywschmidt commented 5 years ago

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 commented 5 years ago

+1 @anthonywschmidt

mightyorange commented 5 years ago

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

mightyorange commented 5 years ago

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