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

How to use type Props?

Open usmanghani-em opened this issue 1 year ago • 0 comments

The type Props has not been exported. I tried to use Tooltip.propTypes as well, but I get this Typescript error:

'Tooltip' only refers to a type, but is being used as a namespace here.

then I tried to use typeof Tooltip.propTypes, but got another Typescript error:

Property 'propTypes' does not exist on type 'typeof Tooltip'.ts(2339)

I there a proper way to use the type? If not then please export the type. Thanks

usmanghani-em avatar Apr 26 '23 08:04 usmanghani-em