Add Pressable Component
See original GitHub issueWould be nice if dripsy could export the Pressable component from react-native.
Sometimes the A component is not sufficient and one would like to use the Pressable.
If i get it right, its basically a View component.
import { Pressable as RNPressable } from 'react-native'
import { createThemedComponent } from 'dripsy'
export const Pressable = createThemedComponent(RNPressable)
works fine for me.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Pressable - React Native
Pressable. Pressable is a Core Component wrapper that can detect various stages of press interactions on any of its defined children.
Read more >How to add opacity to a Pressable component in React Native
In the wrapper component, add a new prop called activeOpacity . This prop accepts a number between 0 and 0.99 . It is...
Read more >How To Use the New Pressable Component in React Native
reactnative #reactA quick overview of the new pressable component in React Native. Subscribe for React Native Videos: ...
Read more >React Native - How to add opacity feedback to Pressable ...
The new Pressable component is great; I like being able to access new events but, how do you add the opacity feedback the...
Read more >How to use Pressable Component in React Native - Morioh
Learn how to use Pressable Component in React Native. The Pressable is a new core component introduced in React Native version 0.63.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Yeah, I agree. I was waiting for people to catch up on upgrading to RNW 0.14 before adding it in.
This is the code I’m using in my app now. Happy to add it to Dripsy along with #48
This supports this usage:
The one missing piece is adding the
hovered, pressedmethods as parts of thesxprop.I’ll have to give that some thought. Maybe if the
sxprop is a function, we can pass it as a function toPressable’sstyle, along with acsscall. I’ll think about.React Native Web 0.14 extends
Pressableto includehovered