forked from kyo504/react-native-marquee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
50 lines (47 loc) · 1.23 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
declare module 'react-native-marquee' {
import React from 'react';
import { EasingFunction, StyleProp, TextStyle } from 'react-native';
export interface IMarqueeTextProps {
/**
* style
*/
style?: StyleProp<TextStyle>;
/**
* Number of milliseconds until animation finishes from start.
*/
duration?: number;
/**
* Easing function to define animation curve.
*/
easing?: EasingFunction;
/**
* Set this true when animation repeats.
*/
loop?: boolean;
/**
* Set this true while waiting for new data from a refresh.
*/
marqueeOnStart?: boolean;
/**
* Number of milliseconds to wait before resetting the marquee position after it finishes.
*/
marqueeResetDelay?: number;
/**
* Number of milliseconds to wait before starting or restarting marquee.
*/
marqueeDelay?: number;
/**
* Callback function for when the marquee completes its animation
*/
onMarqueeComplete?: () => void;
/**
* Text passed
*/
children: string;
/**
* Set this truen if you want to use native driver
*/
useNativeDriver?: boolean;
}
export class MarqueeText extends React.Component<IMarqueeTextProps> {}
}