Pressable
Makes any React Native content tappable, with press feedback built in.


Import
import {Pressable} from '@hzblj/kara-ui'Props
React Native's Pressable, styled through sx like a Box: it springs down to 96% while pressed and takes touches 8 points past its edges. The React Native tier — it needs no host.
Also takes the React Native `sx` props.
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | The pressable content. |
| disabled | boolean | false | Ignores presses — no |
| haptic | boolean | Haptic | false | Played on press. |
| onPress | () => void | — | Called when the press is released, after the |
| testID | string | — | Test identifier, forwarded to the view. |
The pressable content.
Ignores presses — no onPress, no haptic, no spring.
Played on press. true is a light impact; a name picks the haptic, e.g. selection for a choice.
Called when the press is released, after the haptic plays.
Test identifier, forwarded to the view.
Platform notes
- Springs to 96 % while held and takes touches 8 points past its edges.
hapticistruefor a light impact, or any haptic by name. iOS prepares it on press-in.

