# react-native-sortables

> Powerful Sortable Components for Flexible Content Reordering in React Native

Latest version **1.10.1** (published 2026-09-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-sortables
pnpm add react-native-sortables
yarn add react-native-sortables
bun add react-native-sortables
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.10.1 |
| Published | 2026-09-26 |
| First published | 2025-01-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 979 |
| Author | Mateusz Łopaciński |
| Maintainers | matipl01 |
| Keywords | draggable, draggable-flex, draggable-grid, flex, gesture-handler, gestures, grid, haptic-feedback, haptics, react-native, reanimated, reorder, sortable, sortable-flex, sortable-grid |

## Links

- npm: https://www.npmjs.com/package/react-native-sortables
- Repository: https://github.com/MatiPl01/react-native-sortables
- Homepage: https://github.com/MatiPl01/react-native-sortables#readme
- Issues: https://github.com/MatiPl01/react-native-sortables/issues
- npm.io page: https://npm.io/package/react-native-sortables

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 1.10.1 (latest) — 2026-09-26
- 1.10.0 — 2026-07-23
- 1.9.4 — 2025-11-24
- 1.9.3 — 2025-10-27
- 1.9.2 — 2025-09-16
- 1.9.1 — 2025-09-15
- 1.9.0 — 2025-09-13
- 1.8.0 — 2025-07-29
- 1.7.1 — 2025-06-16
- 1.7.0 — 2025-05-26
- 1.6.0 — 2025-04-27
- 1.5.2 — 2025-04-14
- 1.5.1 — 2025-04-01
- 1.5.0 — 2025-03-31
- 1.4.0 — 2025-03-23
- … 8 more at https://npm.io/package/react-native-sortables/versions

## README

<a name="readme-top"></a>

![Banner](https://github.com/user-attachments/assets/532e7ed2-9035-4d5b-9df9-b349ee41608e)

<div align="center">

# <img src="https://github.com/user-attachments/assets/e7dbfceb-63a4-42ef-8c68-f8396a2fbf2e" width="28" /> React Native Sortables

**Powerful Sortable Components for Flexible Content Reordering in React Native**

[Documentation](https://react-native-sortables-docs.vercel.app/) | [Real-World Examples](https://github.com/MatiPl01/react-native-sortables-demos) | [Simple Usage Examples](https://react-native-sortables-docs.vercel.app/grid/examples) | [Contributing](./CONTRIBUTING.md)

![npm](https://img.shields.io/npm/dw/react-native-sortables?color=36877F)
![GitHub issues](https://img.shields.io/github/issues/MatiPl01/react-native-sortables?color=36877F)
![GitHub contributors](https://img.shields.io/github/contributors/MatiPl01/react-native-sortables?color=36877F)
![GitHub Release Date](https://img.shields.io/github/release-date/MatiPl01/react-native-sortables?color=36877F)
![GitHub](https://img.shields.io/github/license/MatiPl01/react-native-sortables?color=36877F)

![GitHub forks](https://img.shields.io/github/forks/MatiPl01/react-native-sortables?style=social)
![GitHub Repo stars](https://img.shields.io/github/stars/MatiPl01/react-native-sortables?style=social)
![GitHub watchers](https://img.shields.io/github/watchers/MatiPl01/react-native-sortables?style=social)

</div>

## Overview

React Native Sortables is a powerful and easy-to-use library that brings smooth, intuitive content reordering to React Native. It provides specialized components whose children can be dynamically reordered through natural dragging gestures.

## Key Features

- 🎯 **Flexible Layouts**

  - **Grid** and **Flex** layout options
  - Support for items with **different dimensions**

- 🚀 **Performance & Reliability**

  - Built with [react-native-reanimated](https://docs.swmansion.com/react-native-reanimated/) and [react-native-gesture-handler](https://docs.swmansion.com/react-native-gesture-handler/)
  - Supports both **Old** and **New Architecture**
  - Type safe with **TypeScript**
  - **Expo** compatible

- ✨ **Rich Interactions**

  - **Auto-scrolling** beyond screen bounds
  - Customizable **layout animations** for items addition and removal
  - Built-in **haptic feedback** integration (optional) via [react-native-pulsar](https://github.com/software-mansion/pulsar), [expo-haptics](https://github.com/expo/expo/tree/main/packages/expo-haptics) or [react-native-haptic-feedback](https://github.com/mkuczera/react-native-haptic-feedback)
  - Different **reordering strategies** (insertion, swapping)

- 💡 **Developer Experience**

  - Simple API with powerful **customization**
  - **Minimal setup** required

- ➕ [More features](https://react-native-sortables-docs.vercel.app/#-key-features)

## Installation

- npm

```sh
npm install react-native-sortables
```

- yarn

```sh
yarn add react-native-sortables
```

### Dependencies

This library is built with:

- [react-native-reanimated](https://docs.swmansion.com/react-native-reanimated/) (version 3.x, 4.x)
- [react-native-gesture-handler](https://docs.swmansion.com/react-native-gesture-handler/) (version 2.x, 3.x)

Make sure to follow their installation instructions for your project.

> [!NOTE]
> On iOS + New Architecture, gesture-handler **2.x** can leave a dragged item
> "stuck" after its screen is detached and re-attached (e.g. bottom tabs with
> `detachInactiveScreens={false}`) - see
> [#349](https://github.com/MatiPl01/react-native-sortables/issues/349).
> **gesture-handler 3** fixes this, and the library uses it automatically when
> installed (v3 requires the New Architecture). The Old Architecture is
> unaffected, so 2.x is the right choice there.

## Quick Start

```tsx
import { useCallback } from 'react';
import { Text, View, StyleSheet } from 'react-native';
import type { SortableGridRenderItem } from 'react-native-sortables';
import Sortable from 'react-native-sortables';

const DATA = Array.from({ length: 12 }, (_, index) => `Item ${index + 1}`);

export default function Grid() {
  const renderItem = useCallback<SortableGridRenderItem<string>>(
    ({ item }) => (
      <View style={styles.card}>
        <Text>{item}</Text>
      </View>
    ),
    []
  );

  return (
    <Sortable.Grid
      columns={3}
      data={DATA}
      renderItem={renderItem}
      rowGap={10}
      columnGap={10}
    />
  );
}

const styles = StyleSheet.create({
  card: {
    backgroundColor: '#36877F',
    height: 100,
    borderRadius: 10,
    alignItems: 'center',
    justifyContent: 'center'
  }
});
```

For detailed usage and examples, check out the [Documentation](https://react-native-sortables-docs.vercel.app/).

## Local Library Development

1. Clone and setup:

   ```bash
   git clone https://github.com/MatiPl01/react-native-sortables.git
   cd react-native-sortables
   yarn
   yarn pod  # iOS only
   ```

2. Start an example app:

   ```bash
   cd example/fabric  # or any other example
   yarn start
   ```

   Available example apps:

   - `fabric` - React Native Fabric example
   - `paper` - React Native Paper example
   - `expo` - Expo example
   - `web` - Web example

   You can also run commands from the project root using the `yarn example:<name> <command>` syntax, e.g.:

   ```bash
   yarn example:fabric start
   yarn example:paper android
   yarn example:expo ios
   ```

3. Build and run:
   - iOS: `yarn ios` or build in Xcode
   - Android: `yarn android` or build in Android Studio

## Contributing

Contributions are welcome! Please read the [Contributing Guide](./CONTRIBUTING.md) for details.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Support

- 🌟 Star this repo to show support
- 🐛 Report bugs by [creating an issue](https://github.com/MatiPl01/react-native-sortables/issues)
- 💡 Request features in discussions [open a discussion](https://github.com/MatiPl01/react-native-sortables/discussions)

<p align="right">(<a href="#readme-top">back to top</a>)</p>

---
_Source: https://npm.io/package/react-native-sortables · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
