@td-design/react-native
Version:
react-native UI组件库
72 lines • 1.45 kB
TypeScript
import { EasingFunction, StyleProp, ViewStyle } from 'react-native';
export interface BaseIndicatorProps {
/**
* Animation easing function
* @default Easing.linear
*/
animationEasing?: EasingFunction;
/**
* Animation duration in ms
* @default 1200
*/
animationDuration?: number;
/**
* Animation toggle
* @default true
*/
animating?: boolean;
/**
* Animation is interaction
* @default true
*/
interaction?: boolean;
/**
* Style is proxied to the underlying View
* @default undefined
*/
style?: StyleProp<ViewStyle>;
/**
* Hide when not animating
* @default true
*/
hidesWhenStopped?: boolean;
}
export interface UIActivityIndicatorProps extends BaseIndicatorProps {
/**
* @default 'rgb(0, 0, 0)'
*/
color?: string;
/**
* @default 12
*/
count?: number;
/**
* @default 36
*/
size?: number;
}
export interface BallIndicatorProps extends BaseIndicatorProps {
/**
* @default 'rgb(0, 0, 0)'
*/
color?: string;
/**
* @default 8
*/
count?: number;
/**
* @default 36
*/
size?: number;
}
export interface MaterialIndicatorProps extends BaseIndicatorProps {
/**
* @default 'rgb(0, 0, 0)'
*/
color?: string;
/**
* @default 36
*/
size?: number;
}
//# sourceMappingURL=type.d.ts.map