react-native-navigation-bottom-sheet
Version:
A performant customizable bottom sheet component made on top of wix react-native-navigation library.
13 lines (12 loc) • 985 B
TypeScript
/** -------------------------------------------- */
/** Utility functions */
/** -------------------------------------------- */
import Animated from "react-native-reanimated";
import type { AnimationConfig } from './types';
export declare function overrideConfig(config: AnimationConfig): void;
/**
* Converts snap points with percentage to fixed numbers.
*/
export declare const normalizeSnapPoints: (snapPoints: ReadonlyArray<number | string>, containerHeight: number) => number[];
export declare function runDecay(clock: Animated.Clock, value: Animated.Value<number>, velocity: Animated.Node<number>, contentHeight: Animated.Value<number>): Animated.Node<number>;
export declare function runSpring(clock: Animated.Clock, start: Animated.Value<number>, end: Animated.Node<number>, velocity: Animated.Value<number>, updateWhenFinished: Animated.Node<number>, wasRun: Animated.Value<number>, valueToUpdate: Animated.Value<number>): Animated.Node<number>;