import React from 'react'; import type {SharedValue} from 'react-native-reanimated'; import {ItemLayoutAnimation, ReorderableListCellAnimations} from '../types'; interface ReorderableListContextData { currentIndex: SharedValue; draggedSize: SharedValue; dragEndHandlers: SharedValue<((from: number, to: number) => void)[][]>; activeIndex: number; itemLayoutAnimation: React.MutableRefObject; cellAnimations: ReorderableListCellAnimations; horizontal: SharedValue; dropIndicatorTranslationXY: SharedValue; } export const ReorderableListContext = React.createContext< ReorderableListContextData | undefined >(undefined);