Skip to main content
Functions: hapticsImpact, hapticsNotification, hapticsSelection. Off-shell they do nothing.

Patterns

hapticsPattern plays a short sequence in one go. The shell times the steps, so the rhythm doesn’t depend on bridge round trips. Pick a named pattern for what happened:
Or pass your own steps, up to 8:
'impact' | 'notification' | 'selection'
Which haptic plays.
string
For impact: light, medium, heavy, rigid or soft. For notification: success, warning or error.
number
Milliseconds to wait before this step, up to 600.
Off-shell, and in shells that predate patterns, nothing plays.

Turning haptics off

@cskn/ui components already fire haptics where the platforms do: selection controls (TabBar, Switch, SegmentedControl, Checkbox), long-press menus, swipe thresholds, pull-to-refresh and Toast. A plain Pressable or Button is silent unless you pass haptic. To silence all of them, and every direct call, opt out once before rendering:
main.tsx
isHapticsEnabled() reads the current setting.