UNPKG

react-native-reorderable-list

Version:

Reorderable list for React Native applications, powered by Reanimated

20 lines (16 loc) 723 B
import React, {Dispatch, SetStateAction} from 'react'; import {ScrollView} from 'react-native'; import {NativeGesture} from 'react-native-gesture-handler'; import {SharedValue} from 'react-native-reanimated'; interface ScrollViewContainerContextData { scrollViewContainerRef: React.RefObject<ScrollView>; scrollViewPageXY: SharedValue<number>; scrollViewSize: SharedValue<number>; scrollViewScrollOffsetXY: SharedValue<number>; scrollViewScrollEnabledProp: SharedValue<boolean>; outerScrollGesture: NativeGesture; setScrollViewForceDisableScroll: Dispatch<SetStateAction<boolean>>; } export const ScrollViewContainerContext = React.createContext< ScrollViewContainerContextData | undefined >(undefined);