37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
import { Component, ReactElement } from 'react';
|
|
import { ViewStyle, TextStyle } from 'react-native';
|
|
export interface NavigationBarProps {
|
|
testID?: string;
|
|
style?: ViewStyle;
|
|
proportion?: number[];
|
|
titleContainer?: ReactElement<any>;
|
|
title?: string;
|
|
titleStyle?: TextStyle;
|
|
backLabel?: ReactElement<any>;
|
|
backLabelIcon?: ReactElement<any>;
|
|
backLabelText?: string;
|
|
backLabelTextStyle?: TextStyle;
|
|
onPressBack?: Function;
|
|
forwardLabel?: ReactElement<any>;
|
|
forwardLabelText?: string;
|
|
forwardLabelTextStyle?: TextStyle;
|
|
onPressForward?: Function;
|
|
renderItem?: Function;
|
|
}
|
|
export declare class NavigationBar extends Component<NavigationBarProps, any> {
|
|
static defaultProps: {
|
|
style: {};
|
|
proportion: number[];
|
|
title: string;
|
|
titleStyle: {};
|
|
backLabelText: string;
|
|
onPressBack: any;
|
|
forwardLabelText: any;
|
|
onPressForward: any;
|
|
renderItem: any;
|
|
};
|
|
constructor(props: NavigationBarProps);
|
|
renderItem(index: any): JSX.Element;
|
|
render(): JSX.Element;
|
|
}
|