
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
react-native-sortables
Advanced tools
Powerful Sortable Components for Flexible Content Reordering in React Native
Powerful Sortable Components for Flexible Content Reordering in React Native
Documentation | Examples | Contributing
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.
🎯 Flexible Layouts
🚀 Performance & Reliability
✨ Rich Interactions
💡 Developer Experience
npm install react-native-sortables
yarn add react-native-sortables
This library is built with:
Make sure to follow their installation instructions for your project.
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.
Clone and setup:
git clone https://github.com/MatiPl01/react-native-sortables.git
cd react-native-sortables
yarn
yarn pod # iOS only
Start an example app:
cd example/fabric # or any other example
yarn start
Available example apps:
fabric
- React Native Fabric examplepaper
- React Native Paper exampleexpo
- Expo exampleweb
- Web exampleYou can also run commands from the project root using the yarn example:<name> <command>
syntax, e.g.:
yarn example:fabric start
yarn example:paper android
yarn example:expo ios
Build and run:
yarn ios
or build in Xcodeyarn android
or build in Android StudioContributions are welcome! Please read the Contributing Guide for details.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Powerful Sortable Components for Flexible Content Reordering in React Native
The npm package react-native-sortables receives a total of 7,280 weekly downloads. As such, react-native-sortables popularity was classified as popular.
We found that react-native-sortables demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.