react-native-elements icon indicating copy to clipboard operation
react-native-elements copied to clipboard

Tooltip - attribute "ref" is missing typescript (manually programiccally)

Open mpochron opened this issue 3 years ago • 2 comments

Explain what you did (Required)

Expected behavior (Required)

Describe the bug (Required)

 Property 'ref' does not exist on type 'IntrinsicAttributes & Omit<{ withPointer?: boolean | undefined; popover?: ReactElement<{}, string | JSXElementConstructor<any>> | undefined; ... 14 more ...; closeOnlyOnBackdropPress?: boolean | undefined; } & { ...; }, keyof ThemeProps<...>> & { ...; }'

To Reproduce (Required)

We highly recommend that you re-create the bug on Snack. If not, list the steps that a reviewer can take to reproduce the behaviour:

Screenshots (Required)

image

Your Environment (Required):

software version
react-native-elements 3.3.2
react-native 0.63.4

mpochron avatar Apr 12 '21 09:04 mpochron

I don't know why typescript is complaining even thought the type of ref has React.RefObject<Input> as type

Screen Shot 2021-06-30 at 5 45 48 PM

const firstNameInputRef = useRef<Input>(null);

Screen Shot 2021-06-30 at 5 46 01 PM

Am I doing something wrong here?

software version
react-native-elements ^3.3.2 --> 3.4.1
react-native 0.63.4

Boubaker93 avatar Jun 30 '21 16:06 Boubaker93

Any update on this? I'm struggling on the same issue: Typescript doesn't recognize the ref prop on Tooltip. The customizations suggested on the react-native-elements are not working too.

lucas-figueiredo-m avatar Jul 26 '21 23:07 lucas-figueiredo-m