-
Notifications
You must be signed in to change notification settings - Fork 93
/
index.d.ts
35 lines (30 loc) · 1.08 KB
/
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
30
31
32
33
34
35
declare module 'react-native-shimmer-placeholder' {
import * as React from 'react';
import { Animated, ViewProps } from 'react-native';
export interface ShimmerPlaceholderProps {
width?: number | string;
height?: number | string;
shimmerWidthPercent?: number;
duration?: number;
delay?: number;
shimmerColors?: string[];
location?: number[];
isReversed?: boolean;
stopAutoRun?: boolean;
visible?: boolean;
children?: any;
style?: any;
shimmerStyle?: any;
contentStyle?: any;
isInteraction?: boolean;
LinearGradient?: React.ComponentClass<any>;
containerProps?: ViewProps
shimmerContainerProps?: ViewProps
childrenContainerProps?: ViewProps
}
class ShimmerPlaceholder extends React.Component<ShimmerPlaceholderProps, any> {
getAnimated(): Animated.CompositeAnimation;
}
export const createShimmerPlaceholder = (LinearGradient?: React.ComponentClass<any>) => ShimmerPlaceholder
export default ShimmerPlaceholder
}