1 |
|
2 | import { Component, ReactNode } from 'react';
|
3 | import { ViewProperties } from 'react-native';
|
4 | export interface HScrollViewProps extends ViewProperties {
|
5 | currentPage: number;
|
6 | scrollEnded: (currentPage: number) => void;
|
7 | children: ReactNode;
|
8 | }
|
9 | export interface HScrollViewStates {
|
10 | currentPage: number;
|
11 | containerWidth: number;
|
12 | }
|
13 | export declare class HScrollViewDefaultProps implements HScrollViewProps {
|
14 | currentPage: number;
|
15 | scrollEnded: () => void;
|
16 | children: any;
|
17 | }
|
18 | export declare class HScrollViewDefaultStates implements HScrollViewDefaultStates {
|
19 | constructor(currentPage: number, containerWidth: number);
|
20 | currentPage: any;
|
21 | containerWidth: any;
|
22 | }
|
23 | export default class HScrollView extends Component<HScrollViewProps, HScrollViewStates> {
|
24 | [x: string]: any;
|
25 | static defaultProps: HScrollViewProps;
|
26 | constructor(props: any);
|
27 | componentWillReceiveProps(nextProps: any): void;
|
28 | scrollEnded: (event: any) => void;
|
29 | scrollToItem: (itemIndex: any) => void;
|
30 | render(): JSX.Element;
|
31 | }
|