lelandrichardson / react-primitives

Primitive React Interfaces Across Targets
MIT License
3.09k stars 108 forks source link

Best way to implement react native's TouchableNativeFeedback? #103

Closed hilary-L closed 6 years ago

hilary-L commented 6 years ago

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?

hilary-L commented 6 years ago

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