lelandrichardson / react-primitives

Primitive React Interfaces Across Targets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Best way to implement react native's TouchableNativeFeedback?

hilary-L opened this issue · comments

I'm starting to experiment with react-primitives and react-sketchapp, and ideally I'd like to convert some components we've built into using react-primitives so that they can be universally rendered. I'm aware that react-primitives comes with a touchable primitive, but I just noticed that one of the components we're using in our native app right now uses the native TouchableNativeFeedback component in order to correctly display the android specific ripple effect in response to a touch. Is there a way to convert this component using react-primitives, or do I have to abandon the ripple effect and just rely on the touchable in react-primitives?

Silly me, I realized I was thinking about this all wrong.