UNPKG

react-native-pull-ups

Version:

Native Bottom Sheet Implementations for iOS and Android. Toddler approved.

61 lines 2.02 kB
/// <reference types="react" /> import type { ViewStyle, ColorValue } from 'react-native'; import PropTypes from 'prop-types'; export type SheetState = 'hidden' | 'collapsed' | 'expanded'; export type IOSStyling = { pullBarHeight?: number; presentingViewCornerRadius?: number; shouldExtendBackground?: boolean; useFullScreenMode?: boolean; shrinkPresentingViewController?: boolean; gripSize?: { width: number; height: number; }; gripColor?: ColorValue; cornerRadius?: number; minimumSpaceAbovePullBar?: number; pullBarBackgroundColor?: ColorValue; treatPullBarAsClear?: boolean; allowPullingPastMaxHeight?: boolean; contentBackgroundColor?: ColorValue; }; export type PullUpProps = { state: SheetState; collapsedHeight?: number; maxSheetWidth?: number; modal?: boolean; hideable?: boolean; dismissable?: boolean; tapToDismissModal?: boolean; useSafeArea?: boolean; onStateChanged: (newState: SheetState) => void; overlayColor?: ColorValue; overlayOpacity?: number; iosStyling?: IOSStyling; style?: ViewStyle; children?: React.ReactNode; }; export declare const PullUpPropTypes: { state: PropTypes.Validator<string>; collapsedHeight: PropTypes.Requireable<number>; maxSheetWidth: PropTypes.Requireable<number>; modal: PropTypes.Requireable<boolean>; hideable: PropTypes.Requireable<boolean>; dismissable: PropTypes.Requireable<boolean>; tapToDismissModal: PropTypes.Requireable<boolean>; useSafeArea: PropTypes.Requireable<boolean>; onStateChanged: PropTypes.Requireable<(...args: any[]) => any>; overlayOpacity: PropTypes.Requireable<number>; iosStyling: PropTypes.Requireable<object>; }; export declare const PullUpDefaultProps: { modal: boolean; hideable: boolean; dismissable: boolean; tapToDismissModal: boolean; useSafeArea: boolean; overlayColor: string; overlayOpacity: number; }; //# sourceMappingURL=types.d.ts.map