UNPKG

1.07 kBTypeScriptView Raw
1/// <reference types="react" />
2import { Component, ReactNode } from 'react';
3import { ViewProperties } from 'react-native';
4export interface HScrollViewProps extends ViewProperties {
5 currentPage: number;
6 scrollEnded: (currentPage: number) => void;
7 children: ReactNode;
8}
9export interface HScrollViewStates {
10 currentPage: number;
11 containerWidth: number;
12}
13export declare class HScrollViewDefaultProps implements HScrollViewProps {
14 currentPage: number;
15 scrollEnded: () => void;
16 children: any;
17}
18export declare class HScrollViewDefaultStates implements HScrollViewDefaultStates {
19 constructor(currentPage: number, containerWidth: number);
20 currentPage: any;
21 containerWidth: any;
22}
23export 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}