jasongaare / react-native-walkthrough-tooltip

An inline wrapper for calling out React Native components via tooltip
MIT License
610 stars 182 forks source link

show multi tooltip #144

Open jamesctl opened 2 years ago

jamesctl commented 2 years ago

Hello I want to show multi tooltip, but only show one, and tooltip always show, how to to that this is my code

<Tooltip
  isVisible={true}
  content={<Text>hello</Text>}
  placement="top"
  onClose={() => (true)}
>
<Image source={require('./assets/images/1.png')} resizeMode='cover' style={{width:25,height:25}}></Image>
</Tooltip>  
<Tooltip
  isVisible={true}
  content={<Text>Here</Text>}
  placement="top"
  onClose={() => (true)}
>
<Image source={require('./assets/images/2.png')} resizeMode='cover' style={{width:25,height:25}}></Image>
</Tooltip>  

thanks

apfritts commented 2 years ago

@ngodanghuuha Did you try setting useReactNativeModal to false? You cannot render 2 tooltips at the same time on iOS because you cannot have 2 modals at the same time.