rn-tooltip icon indicating copy to clipboard operation
rn-tooltip copied to clipboard

exposing type Props

Open fabioguarrasi opened this issue 6 months ago • 0 comments

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>
  );
};

fabioguarrasi avatar Dec 11 '23 20:12 fabioguarrasi