@attio/react-native-bottom-sheet-toolbox
Version:
22 lines • 1.1 kB
TypeScript
import { type SharedValue } from "react-native-reanimated";
export interface UseFooterBottomPositionSharedValueArgs {
/**
* A shared value that tells the footer how it should be moved with the
* sheet. By default, this is the internal children height of the sheet.
*/
bufferSharedValue?: SharedValue<number | null> | undefined;
/**
* Whether the footer should be adjusted for the keyboard.
*/
disableKeyboardAdjust?: boolean | undefined;
/**
* Whether the footer should freeze its position when the sheet is expanding.
* This is useful when adding or removing items and is the default behavior.
*/
freezeWhenExpanding?: boolean | undefined;
}
/**
* A shared value used as the bottom position for a footer.
*/
export declare function useFooterBottomPositionSharedValue({ bufferSharedValue: outerBufferSharedValue, disableKeyboardAdjust, freezeWhenExpanding, }: UseFooterBottomPositionSharedValueArgs): import("react-native-reanimated").DerivedValue<number | null>;
//# sourceMappingURL=use-footer-bottom-position-shared-value.d.ts.map