rn-tooltip
rn-tooltip copied to clipboard
exposing type Props
exposing the type Props, will allow an easy way to extend the Tooltip component. Ex
import React from "react";
import RNTooltip, { TooltipProps as RNTooltipProps } from "rn-tooltip";
interface TooltipProps extends Partial<RNTooltipProps> {
aNewProp: string;
}
const Tooltip: React.FC<TooltipProps> = (props) => {
return (
<RNTooltip {...props} actionType="press" withOverlay={false}>
{props.children}
</RNTooltip>
);
};