# Swipeable Row — React Native component for Expo

> A mail-style row whose actions fan out and grow as you drag it sideways.

Mail-style list row: drag sideways to reveal actions that fan out and grow with your finger. A full swipe stretches the edge action across the row and fires it — destructive ones slide away and collapse the row. PanResponder only, so it works with a mouse on the web too.

- Docs: https://expokit.in/docs/components/swipeable-row
- Tier: Pro (ExpoKit Pro plan)
- Also called: swipe to delete, swipeable list, swipe actions
- Category: Display
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- Uses ExpoKit items: kit
- Variants: Inbox, Delete Only, No Full Swipe

## Installation

This component is part of ExpoKit Pro. With a Pro plan, log the CLI in once and add it like any other item:

```bash
npx @expokit/cli@latest login
```

Plans: https://expokit.in/pricing

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `leftActions` | `SwipeAction[]` | `[]` | Revealed by swiping right; the first is the edge (full-swipe) action. |
| `rightActions` | `SwipeAction[]` | `[]` | Revealed by swiping left; the last is the edge (full-swipe) action. |
| `SwipeAction` | `{ label, color, icon?, onPress?, destructive? }` | — | destructive collapses the row before calling onPress. |
| `actionWidth` | `number` | `76` | Width of each action when resting open. |
| `fullSwipe` | `boolean` | `true` | Swiping past half the row fires the edge action. |
| `closeOnActionPress` | `boolean` | `true` | Spring closed after an action is tapped. |
| `onOpen / onClose` | `(side) => void / () => void` | — | Open state callbacks. |
| `disabled` | `boolean` | `false` | Turns swiping off. |
| `contentStyle` | `StyleProp<ViewStyle>` | `theme background` | Style of the sliding foreground — keep its background opaque. |
| `style` | `StyleProp<ViewStyle>` | — | Style for the outer row that holds the actions behind the sliding content. |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |

## Behaviour & accessibility

- **Touch**: Drag sideways to reveal the actions; a full swipe past half the row fires the edge action. Tap the open row to close it.
- **Motion**: Actions fan out and grow with your finger, the edge action stretches across on a full swipe, and destructive actions slide away and collapse the row.
- **Screen readers**: Every action is offered as a named accessibility action on the row, and each revealed action is a labelled button.
- **Web**: Built on PanResponder, so a mouse drag works too; the row shows a grab cursor and text selection is turned off.

## FAQ

### How do I make a swipe to delete in React Native?

Use ExpoKit's Swipeable Row, a Pro component: with ExpoKit Pro, the ExpoKit CLI copies a ready-made swipe to delete into your Expo or React Native app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.

### Does Swipeable Row work in Expo Go?

Yes. Swipeable Row runs in Expo Go on iOS and Android with no development build.

### How do I add Swipeable Row to my Expo app?

With ExpoKit Pro, add it with the ExpoKit CLI: it copies the component's source into your app, so the code is yours to change. The install command is on this page for Pro members.

### Is Swipeable Row free?

Swipeable Row is part of ExpoKit Pro. With a Pro plan, log the CLI in once and it installs the full source into your app.

### Can I change how Swipeable Row 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/swipeable-row
- 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
