How can I make typescript work with react native web types.
For example, in React Native, the component does not have onHoverIn
, but it does exist in React Native Web. Is there any way to add these types to typescript so that it won`t show an error?
For example, let`s look at this code https://snack.expo.dev/KXvr3_XMQ
The onHoverIn
and onHoverOut
functions work as expected here but typescript is showing an error.
I saw on React Native Web website that they have some support for Flow but I was wondering if I can make this work somehow with TypeScript.
Thank you.