Simple, lightwweight and blazing fast react native tooltip

Expo App if you want to try it out: https://expo.io/@andreixoc/RNTooltipTester
Code for the Expo app is here: https://github.com/andreiCalazans/rnTooltipTester
yarn add rn-tooltip
or
npm install rn-tooltip --save
import { Text } from 'react-native';
import Tooltip from 'rn-tooltip';
...
<Tooltip popover={<Text>Info here</Text>}>
<Text>Press me</Text>
</Tooltip>
backgroundColorcontainerStyleheighthighlightColoronCloseonOpenpointerColorpointerStylepopoveractionTypewidthwithOverlayoverlayColorwithPointertoggleWrapperPropsbackgroundColorsets backgroundColor of the tooltip and pointer.
| Type | Default |
|---|---|
| string | #617080 |
containerStylePasses style object to tooltip container
| Type | Default |
|---|---|
| object (style) | inherited styling |
heightTooltip container height. Necessary in order to render the container in the correct place. Pass height according to the size of the content rendered inside the container.
| Type | Default |
|---|---|
| number | string |
highlightColorColor to highlight the item the tooltip is surrounding.
| Type | Default |
|---|---|
| string | transparent |
onClosefunction which gets called on closing the tooltip.
| Type | Default |
|---|---|
| function | () => {} |
onOpenfunction which gets called on opening the tooltip.
| Type | Default |
|---|---|
| function | () => {} |
pointerColorColor of tooltip pointer, it defaults to the
backgroundColor if none is passed .
| Type | Default |
|---|---|
| string | backgroundColor |
pointerStylePasses style object to tooltip pointer view
| Type | Default |
|---|---|
| object (style) | inherited styling |
popoverComponent to be rendered as the display container.
| Type | Default |
|---|---|
| React.Element | null |
actionTypeFlag to determine how the tooltip reacts to presses.
| Type | Default |
|---|---|
| press or none or longPress | press |
widthTooltip container width. Necessary in order to render the container in the correct place. Pass height according to the size of the content rendered inside the container.
| Type | Default |
|---|---|
| number | number |
withOverlayFlag to determine whether or not dislay overlay shadow when tooltip is open.
| Type | Default |
|---|---|
| boolean | true |
overlayColorSets backgroundColor of the overlay.
| Type | Default |
|---|---|
| string | rgba(250, 250, 250, 0.70) |
withPointerFlag to determine whether or not dislay pointer.
| Type | Default |
|---|---|
| boolean | true |
toggleWrapperPropsDrills TouchableOpacity Props down to the TouchableOpacity wrapper that toggles the Tooltip.
| Type | Default |
|---|---|
| TouchableOpacityProps | {} |
MIT Licensed
$ claude mcp add rn-tooltip \
-- python -m otcore.mcp_server <graph>