React Native Draggable Flatlist screenshot

React Native Draggable Flatlist

Author Avatar Theme by Computerjazz
Updated: 6 May 2025
2154 Stars

A drag-and-drop-enabled FlatList for React Native

Categories

Overview

The React Native Draggable FlatList is a versatile component that allows for drag-and-drop functionality within a FlatList in React Native. It is powered by Reanimated and React Native Gesture Handler, providing fully native interactions. For those interested in using swipeable list items, there is an option to integrate React Native Swipeable Item alongside the Draggable FlatList.

Features

  • Drag-and-Drop Functionality: Enables users to rearrange items within the FlatList by dragging and dropping.
  • Native Interactions: Provides a seamless user experience with fully native interactions powered by Reanimated and React Native Gesture Handler.
  • Integration with React Native Swipeable Item: Option to incorporate swipeable list items for added functionality.

Installation

To install the React Native Draggable FlatList component, follow these steps:

  1. Ensure you have installed Reanimated and react-native-gesture-handler in your project.
  2. Depending on your setup, you may need to make changes to MainActivity.java for react-native-gesture-handler.
  3. Install the package using npm or yarn:
    • With npm: npm install react-native-draggable-flatlist
    • With yarn: yarn add react-native-draggable-flatlist
  4. Import the DraggableFlatList component in your code to start using it.

Summary

The React Native Draggable FlatList is a powerful tool for incorporating drag-and-drop functionality in a FlatList within your React Native applications. With its fully native interactions and the option to integrate swipeable list items, this component offers a seamless way to enhance user interactions and create engaging user interfaces. By following the installation instructions and leveraging the provided API props, developers can easily implement and customize the behavior of the Draggable FlatList to suit their specific project needs.