-
Notifications
You must be signed in to change notification settings - Fork 75
/
react-native-text-ticker.d.ts
38 lines (35 loc) · 1.01 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
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;
}
export interface TextTickerRef {
startAnimation(): void;
stopAnimation(): void;
}
export default class TextTicker extends React.Component<TextTickerProps> { }
}