@aomi/react-native-components
Version:
React Native Components
36 lines (35 loc) • 881 B
TypeScript
/// <reference types="react" />
import Component from '../AbstractComponent';
import { Props } from './Props';
/**
* @author 田尘殇Sean(sean.snow@live.com)
* @date 2017/10/18
*/
export declare class Swiper extends Component<Props> {
static defaultProps: {
autoPlay: boolean;
duration: number;
horizontal: boolean;
};
static getDerivedStateFromProps(props: any): {
routes: {
key: string;
}[];
};
state: {
index: number;
routes: any[];
};
autoPlayTask: any;
constructor(props: any);
componentWillUnmount(): void;
autoPlay(): void;
handleIndexChange(index: number): void;
renderScene({ route }: {
route: any;
}): JSX.Element;
renderPagination({ navigationState }: {
navigationState: any;
}): JSX.Element;
render(): JSX.Element;
}