# Action Sheet — React Native component for Expo

> An iOS-style action sheet that follows your finger and flings away to dismiss.

An iOS-quality action sheet: grouped rounded cards with hairline separators, an optional title and message, and a separate Cancel card. It springs up over a fading scrim and follows your finger anywhere on the sheet — fling or pull past a third to dismiss, pulling up rubber-bands. Rows highlight on touch with a selection haptic; icons, destructive and disabled options; plus a Material list and a share-sheet grid.

- Docs: https://expokit.in/docs/components/action-sheet
- Tier: Free
- Also called: action sheet, iOS action sheet, options menu
- Category: Overlays
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: react-native-svg, expo-haptics
- Uses ExpoKit items: kit
- Variants: Photo, Message Actions, Share, Post Options, Discard Draft

## Installation

Run once per project: `npx @expokit/cli@latest init` (shared theme + KitProvider). Then:

```bash
npx @expokit/cli@latest add action-sheet
```

The CLI copies the source into your project (you own the code) and installs react-native-svg, expo-haptics.

Import: `import { ActionSheet } from "@/components/ui/action-sheet";`

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `open / defaultOpen` | `boolean` | `false` | Controlled / uncontrolled visibility. |
| `onOpenChange` | `(open: boolean) => void` | — | Called on actions, Cancel, backdrop tap, drag-down, back and Escape. |
| `actions` | `{ label, icon?, destructive?, disabled?, color?, onPress? }[]` | — | The options. `icon` is a built-in name (camera, image, trash, reply, forward, copy, pin, edit, share, link, mail, …) or a node; destructive rows use the danger colour; return false from onPress to stay open; `color` tints grid tiles. |
| `title / message` | `string` | — | Header text above the actions. |
| `cancelLabel` | `string \| null` | `labels.cancel` | Separate cancel button; null hides it. |
| `onCancel` | `() => void` | — | Called on Cancel, backdrop tap and drag-to-dismiss. |
| `variant` | `"inset" \| "list" \| "grid"` | `"inset"` | iOS grouped cards (text-only rows centred in the accent; rows with icons read like a menu), Material edge-to-edge list with a drag handle, or share-sheet tiles. |
| `bottomInset` | `number` | `platform safe inset` | Padding above the home indicator; pass useSafeAreaInsets().bottom for the device. |
| `accent` | `string` | `theme accent` | Colour of text-only actions and Cancel in the inset variant. |
| `dismissible` | `boolean` | `true` | Close on scrim tap, drag, back and Escape. When false the sheet only rubber-bands. |
| `haptics` | `boolean` | `true` | Light impact on open, selection tick when an action is picked. |
| `style` | `StyleProp<ViewStyle>` | — | Sheet container style. |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |

## Behaviour & accessibility

- **Touch**: Drag anywhere on the sheet. Pull past a third of its height or flick down to dismiss; pulling up rubber-bands.
- **Motion**: Springs up over a fading scrim. The exit is quicker than the entry and keeps a fling's momentum.
- **Reduced motion**: The sheet fades in and out in place instead of sliding up from the bottom.
- **Haptics**: A light impact when it opens and a selection tick when you pick an action. Turn off with haptics={false}.
- **Screen readers**: The sheet is a modal view, the title is a header and each row is a button with its label and disabled state.
- **Keyboard**: Escape closes it on web; the Android back button closes it too.

## FAQ

### How do I make an action sheet in React Native?

Use ExpoKit's Action Sheet: run npx @expokit/cli@latest add action-sheet in your Expo or React Native project and it copies a ready-made action sheet into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.

### Does Action Sheet work in Expo Go?

Yes. Action Sheet runs in Expo Go on iOS and Android with no development build — its packages (react-native-svg, expo-haptics) are all included in Expo Go.

### How do I add Action Sheet to my Expo app?

Run npx @expokit/cli@latest add action-sheet in your project. The CLI copies the component's source into your app and installs react-native-svg, expo-haptics, so the code is yours to change.

### Is Action Sheet free?

Yes. Action Sheet is free: its full source is on this page and the CLI installs it without an account.

### Can I change how Action Sheet looks?

Yes. It takes its colours, radius and light / dark mode from useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit component. The code lives in your project, so you can also edit anything directly.

## More

- Live preview, variants and code: https://expokit.in/docs/components/action-sheet
- Every ExpoKit component, screen, template and chart: https://expokit.in/llms.txt
- Install commands and props for every free component: https://expokit.in/llms-full.txt
- Pricing: https://expokit.in/pricing
