UNPKG

@td-design/react-native

Version:

react-native UI组件库

16 lines 612 B
/// <reference types="react" /> import { LayoutChangeEvent } from 'react-native'; import { Swipeable } from 'react-native-gesture-handler'; import type { SwipeRowProps } from '.'; export default function useSwipeRow({ anchor, onRemove }: Pick<SwipeRowProps, 'onRemove' | 'anchor'>): { swipeableRef: import("react").RefObject<Swipeable>; animatedStyle: { height: number; } | { height?: undefined; }; changeState: (id: string | number) => void; handleLayout: (e: LayoutChangeEvent) => void; handleRemove: () => Promise<void>; }; //# sourceMappingURL=useSwipeRow.d.ts.map