///
import React, { Component, ReactElement } from 'react';
import { TextStyle, ViewStyle, ViewProperties } from 'react-native';
export declare enum PositionEnum {
top = "top",
bottom = "bottom",
}
export interface TabSenceProps extends ViewProperties {
activeTextStyle?: TextStyle;
children?: ReactElement[];
defaultTextStyle?: TextStyle;
initialPage?: number;
onChangeTab?: (param: any) => void;
renderTabBar?: (x: string) => ReactElement;
scrollEnabled?: boolean;
tabBarPosition?: string;
tabBarStyle?: ViewStyle;
tabUnderLineStyle?: ViewStyle;
}
export declare class TabSenceDefaultProps implements TabSenceProps {
defaultTextStyle: TextStyle;
activeTextStyle: TextStyle;
constructor(defaultTextStyle: TextStyle, activeTextStyle: TextStyle);
children: any[];
initialPage: number;
onChangeTab: () => void;
page: number;
renderTabBar: any;
scrollEnabled: boolean;
style: any;
tabBarPosition: PositionEnum;
tabBarStyle: any;
tabUnderLineStyle: any;
}
export interface TabScenceState {
currentPage: number;
containerWidth: number;
}
export default class TabScene extends Component {
[x: string]: any;
static defaultProps: TabSenceProps;
constructor(props: any);
ComponentWillReceiveProps: (props: any) => void;
getChildren: (children?: React.ReactElement[] | (string & React.ReactElement[]) | (number & React.ReactElement[]) | (true & React.ReactElement[]) | (false & React.ReactElement[]) | (React.ReactElement & React.ReactElement[]) | ((string | number | boolean | any[] | React.ReactElement)[] & React.ReactElement[])) => React.ReactChild[];
readonly tabBarProps: {
goToScene: (pageNumber: any) => void;
tabs: any[];
activeTab: number;
activeTextStyle: TextStyle;
defaultTextStyle: TextStyle;
tabUnderLineStyle: ViewStyle;
tabBarStyle: ViewStyle;
};
goToScene: (pageNumber: any) => void;
updateSceneKeys: ({page, callback}: {
page: any;
callback?: () => void;
}) => void;
handleChangeTab: (prevPage: any, currentPage: any) => void;
bindOnActive(key: any, callback: any): void;
bindEvent(obj: any, key: any, callback: any): void;
renderScrollableContent: () => JSX.Element[];
renderTabBar: (props: any) => JSX.Element;
renderScrollView: (isAnimated: boolean) => JSX.Element;
render(): JSX.Element;
}