flexn-io / create

Build apps for web, TVs, desktops, consoles, wearables and more. Developer friendly UI library targeting all form factors platforms. Another notable feature is providing focus management for TVs which very easy to implement using Create.
https://create.flexn.org
MIT License
26 stars 6 forks source link

onHoverIn missing from types in Pressable #78

Closed pavjacko closed 1 year ago

pavjacko commented 1 year ago

//@ts-ignore Flexn SDK does not have this prop? onHoverIn={() => { setIsHover(true); tSetState('hover'); }}

locksten commented 1 year ago

Workaround in prd-ost-flosky: https://github.com/flexn-seals/prd-ost-flosky/blob/802f8b54a396d94c144af83b398d67d75156e7f6/packages/sdk-flosky/typings/react-native.d.ts#L42

aurimasmi commented 1 year ago

@locksten @pavjacko how did you made this workaround? When our RN version does not even support onHoverIn https://reactnative.dev/docs/0.67/pressable

locksten commented 1 year ago

@aurimasmi I didn't write that code, but I'm pretty sure that react-native-web supported those props earlier than react-native.

GabrieleKaceviciute commented 1 year ago

@aurimasmi @locksten How should I test it?

locksten commented 1 year ago

@GabrieleKaceviciute can be tested by opening compose in VSCode and making sure onHoverIn / onHoverOut in this file are not shown as errors.