forked from cbbfcd/react-native-lightbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLightbox.d.ts
36 lines (36 loc) · 1.05 KB
/
Lightbox.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import React from "react";
import { StyleProp, ViewStyle, ModalProps } from "react-native";
import { IGestureProps } from "./hooks";
export declare type Func<T, R> = (...args: T[]) => R;
export interface IOrigin {
width: number;
height: number;
x: number;
y: number;
}
export interface ISpringConfig {
tension: number;
friction: number;
}
export interface LightboxProps<T = any> extends IGestureProps {
activeProps?: Record<string, T>;
renderContent?: Func<T, JSX.Element>;
renderHeader?: Func<T, JSX.Element>;
didOpen?: Func<T, void>;
onOpen?: Func<T, void>;
willClose?: Func<T, void>;
onClose?: Func<T, void>;
onLongPress?: Func<T, void>;
onLayout?: Func<T, void>;
swipeToDismiss?: boolean;
disabled?: boolean;
springConfig?: ISpringConfig;
style?: StyleProp<ViewStyle>;
underlayColor?: string;
backgroundColor?: string;
useNativeDriver?: boolean;
dragDismissThreshold?: number;
modalProps?: ModalProps;
}
declare const Lightbox: React.FC<LightboxProps>;
export default Lightbox;