react-native-elements
react-native-elements copied to clipboard
Tooltip - attribute "ref" is missing typescript (manually programiccally)
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)
Your Environment (Required):
software | version |
---|---|
react-native-elements | 3.3.2 |
react-native | 0.63.4 |
I don't know why typescript is complaining even thought the type of ref has React.RefObject<Input>
as type
const firstNameInputRef = useRef<Input>(null);
Am I doing something wrong here?
software | version |
---|---|
react-native-elements | ^3.3.2 --> 3.4.1 |
react-native | 0.63.4 |
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.