UNPKG

@attio/react-native-bottom-sheet-toolbox

Version:
14 lines 803 B
/** * A priority lock for controlling the position of the bottom-sheet. * This allows our bottom-sheet's position to be modified by multiple sources. */ export declare function useBottomSheetPositionLock(id: string, priority: number): { canLockSharedValue: import("react-native-reanimated").DerivedValue<boolean>; hasLockSharedValue: import("react-native-reanimated").DerivedValue<boolean>; lock: () => void; release: () => void; setPosition: (v: number) => void; setPositionAnimate: (v: number, animationConfig?: import("react-native-reanimated/lib/typescript/animation/springUtils").SpringConfig | undefined, callback?: ((finished?: boolean) => void) | undefined) => void; setVelocity: (v: number) => void; }; //# sourceMappingURL=use-bottom-sheet-position-lock.d.ts.map