forked from deanhet/react-native-text-ticker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact-native-text-ticker.d.ts
44 lines (41 loc) · 1.07 KB
/
react-native-text-ticker.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
37
38
39
40
41
42
43
44
declare module "react-native-text-ticker" {
import React from "react";
import {
StyleProp,
TextProps,
TextStyle,
EasingFunction,
} from "react-native";
export interface TextTickerProps extends TextProps {
duration?: number;
onMarqueeComplete?: () => void;
onScrollStart?: () => void;
style?: StyleProp<TextStyle>;
loop?: boolean;
bounce?: boolean;
scroll?: boolean;
marqueeOnMount?: boolean;
marqueeDelay?: number;
bounceDelay?: number;
isInteraction?: boolean;
useNativeDriver?: boolean;
repeatSpacer?: number;
easing?: EasingFunction;
animationType?: "auto" | "scroll" | "bounce";
scrollSpeed?: number;
bounceSpeed?: number;
shouldAnimateTreshold?: number;
isRTL?: boolean;
bouncePadding?: {
left?: number;
right?: number;
};
disabled?: boolean;
onWidthResolveError?: () => void;
}
export interface TextTickerRef {
startAnimation(): void;
stopAnimation(): void;
}
export default class TextTicker extends React.Component<TextTickerProps> {}
}