-
-
Notifications
You must be signed in to change notification settings - Fork 177
/
Copy pathindex.d.ts
29 lines (25 loc) · 863 Bytes
/
index.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
import type React from 'react';
import type { ImageProps, StyleProp } from 'react-native';
declare module 'react-native-image-progress' {
type ImageProgressComponent<P = {}> = React.ComponentType<
P & {
errorContainerStyle?: StyleProp<any>;
indicator?: React.ComponentType;
indicatorContainerStyle?: StyleProp<any>;
indicatorProps?: any;
renderIndicator?: (
progress: number,
indeterminate: boolean,
) => React.ReactElement;
renderError?: (error: Error) => React.ReactElement;
style?: StyleProp<any>;
imageStyle?: StyleProp<any>;
threshold?: number;
}
>;
export function createImageProgress<P = {}>(
ImageComponent: React.ComponentType<P>,
): ImageProgressComponent<P>;
const ImageProgress: ImageProgressComponent<ImageProps>;
export default ImageProgress;
}