UNPKG

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

Version:
32 lines 1.4 kB
import * as React from "react"; import { type AnimatedKeyboardOptions, type SharedValue } from "react-native-reanimated"; interface WithInternalKeyboardProviderProps extends React.PropsWithChildren { keyboardHeightSharedValue: SharedValue<number>; keyboardProgressSharedValue: SharedValue<number>; } type KeyboardProviderProps = Omit<WithInternalKeyboardProviderProps, "keyboardHeightSharedValue" | "keyboardProgressSharedValue"> & ({ animatedKeyboardOptions?: AnimatedKeyboardOptions; } | { keyboardHeightSharedValue: SharedValue<number>; keyboardProgressSharedValue: SharedValue<number>; }); /** * Provides shared values representing the keyboard height and progress that * various bottom sheet behaviors can hook into. * * This also support additional keyboard height, which is useful when implementing * features such as keyboard toolbars. */ export declare function KeyboardProvider({ children, ...rest }: KeyboardProviderProps): React.JSX.Element; /** * Returns a shared value representing the keyboard height plus any additional * keyboard height. */ export declare function useKeyboardHeightSharedValue(): SharedValue<number>; /** * Returns a shared value, from 0 to 1, representing the keyboard's opening * progress. */ export declare function useKeyboardProgressSharedValue(): SharedValue<number>; export {}; //# sourceMappingURL=keyboard-context.d.ts.map