A while ago all my <Text>
components started giving TypeScript errors for missing attributes (onPressIn
and onPressOut
). Now, I would prefer not to add all these attributes with undefined values to all my <Text>
components.
How do I fix this? And are these attributes suddenly required?
CodePudding user response:
It seems there's a typing problem with react-native-paper
, you can check the issue here
Use these latest packages to remove the error based on the:
react-native-paper 4.10.1
react-native 0.66.3
@types/react-native 0.66.4
here is the link to the solution