nandorojo / dripsy

🍷 Responsive, unstyled UI primitives for React Native + Web.
https://dripsy.xyz
MIT License
1.99k stars 77 forks source link

[types] Pressable: missing unstable_pressDelay #195

Closed hirbod closed 2 years ago

hirbod commented 2 years ago

Pressable imported from dripsy does not support unstable_pressDelay

nandorojo commented 2 years ago

welcome to a PR

hirbod commented 2 years ago

I would love to, but have 0 clue. A quick look through the code did not shed any light for me where to find what I am looking for.

nandorojo commented 2 years ago

presumably it’s just the version of RN types? i assume this is a feature in a newer version?

hirbod commented 2 years ago

I am on 0.64.3 and the prop is working for me. (it is delaying my touch) I can see that you pass Pressable through styled and the magic is happening here: https://github.com/nandorojo/dripsy/blob/master/packages/core/src/css/styled.tsx

nandorojo commented 2 years ago

styled doesn’t edit any existing props. you’re probably on too old an RN types version?

hirbod commented 2 years ago

"@types/react-native": "~0.67.3",

nandorojo commented 2 years ago

Dripsy doesn't create any types for components, it only forwards their existing ones. So if this isn't workin for you, I have to assume it's a problem with the types package you installed not having it