import {ComponentProps} from 'react'; import Animated, {SharedValue} from 'react-native-reanimated'; export enum ReorderableListState { IDLE = 0, DRAGGED, RELEASED, AUTOSCROLL, } export type ItemLayoutAnimation = Exclude< ComponentProps['layout'], undefined >; export type SharedValueOrType = { [TKey in keyof T]?: SharedValue | T[TKey]; }; export type MaximumOneOf = K extends keyof T ? {[P in K]: T[K]} & {[P in Exclude]?: never} : never;