react-native-reorderable-list
Version:
Reorderable list for React Native applications, powered by Reanimated
12 lines • 413 B
TypeScript
/**
* Moves an item in an array to a new index.
*
* @template T - The type of elements in the array.
* @param data - The array of items.
* @param from - The index of the item to move.
* @param to - The index to move the item to.
*
* @returns A new array with the two items swapped.
*/
export declare const reorderItems: <T>(data: T[], from: number, to: number) => T[];
//# sourceMappingURL=utils.d.ts.map