Kinetik UI

Action Sheet

.md

Actions from the bottom edge with Cancel apart: it springs up, follows a downward drag and drops away.

v1.0.0Live on webreact-native-gesture-handlerreact-native-reanimatedreact-native-safe-area-contextreact-native-worklets
Component preview

Installation

Kinetik CLI
npx kinetik-ui add action-sheet

The CLI copies the source and installs native dependencies with npx expo install, so versions match your Expo SDK. With shadcn: npx shadcn@latest add https://kinetik-ui.dev/r/action-sheet.json

Install manually

  1. Install dependencies
    npx expo install react-native-gesture-handler react-native-reanimated react-native-safe-area-context react-native-worklets
  2. Copy the source files
    • components/kinetik/action-sheet.tsx
    View source files

Usage

import { ActionSheet } from '@/components/kinetik/action-sheet';

<ActionSheet
  visible={open}
  onClose={() => setOpen(false)}
  title="Sunset at the pier.jpg"
  actions={[
    { label: 'Share', onPress: share },
    { label: 'Delete photo', tone: 'danger', onPress: remove },
  ]}
/>;

When to use

  • A short list of things to do with one object: a photo, a message, a file.
  • Phone layouts, where the actions are easiest to reach at the bottom edge.

When not to use

  • A single confirmation. Use Pop Dialog.
  • Menus attached to a button on wide screens. Use Pop Menu.

Notes

  • A chosen action runs after the sheet has closed, so navigation or a dialog it opens never overlaps the exit.
  • Drag the sheet down past about a quarter of its height, or flick it, to close it; a shorter drag springs back.
  • The bottom padding follows the safe area when the app has a SafeAreaProvider (Expo Router adds one).
  • With reduced motion it appears and disappears without sliding.

Props

ActionSheetProps

PropTypeDefaultDescription
visiblerequiredboolean—
onCloserequired() => void—Called whenever the sheet closes: Cancel, a tap outside, a swipe down, Back.
actionsrequiredreadonly SheetAction[]—
titlestring—A short line above the actions, e.g. what they apply to.
messagestring—
cancelLabelstring'Cancel'Defaults to "Cancel".
hapticsbooleantrueA tick when an action is chosen. Defaults to true.
testIDstring—
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
A transparent modal of plain views; the sheet and scrim read two shared values. Nothing runs at rest.
Measured

Pixel 9 emulator, API 35, release build · interaction median 1.06× the system Settings app on the same emulator (indicative only) · no frames drawn at rest · 141 MB app memory. p99 spikes are the first frame of the modal window opening.

Real-device measurement pending.

Accessibility

Reduced motion
The sheet appears and disappears without sliding.
Screen readers
A heading and a button per action, plus Cancel; Back and the escape gesture close it.
Touch target
Every action and Cancel are full-width rows 56 pt tall.

Source files

components/kinetik/action-sheet.tsx is in the Code tab of the preview above.