UNPKG

1.49 kBTypeScriptView Raw
1import React from 'react';
2import { ModalProps, ViewStyle, StyleProp } from 'react-native';
3import { RneFunctionComponent } from '../helpers';
4export declare type OverlayProps = ModalProps & {
5 isVisible: boolean;
6 backdropStyle?: StyleProp<ViewStyle>;
7 overlayStyle?: StyleProp<ViewStyle>;
8 onBackdropPress?(): void;
9 fullScreen?: boolean;
10 ModalComponent?: typeof React.Component;
11};
12declare const Overlay: RneFunctionComponent<OverlayProps>;
13export { Overlay };
14declare const _default: React.FunctionComponent<Omit<import("react-native").ModalBaseProps & import("react-native").ModalPropsIOS & import("react-native").ModalPropsAndroid & import("react-native").ViewProps & {
15 isVisible: boolean;
16 backdropStyle?: StyleProp<ViewStyle>;
17 overlayStyle?: StyleProp<ViewStyle>;
18 onBackdropPress?(): void;
19 fullScreen?: boolean;
20 ModalComponent?: typeof React.Component;
21} & Partial<import("../config").ThemeProps<OverlayProps>>, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<import("react-native").ModalBaseProps & import("react-native").ModalPropsIOS & import("react-native").ModalPropsAndroid & import("react-native").ViewProps & {
22 isVisible: boolean;
23 backdropStyle?: StyleProp<ViewStyle>;
24 overlayStyle?: StyleProp<ViewStyle>;
25 onBackdropPress?(): void;
26 fullScreen?: boolean;
27 ModalComponent?: typeof React.Component;
28} & Partial<import("../config").ThemeProps<OverlayProps>>>;
29export default _default;