UNPKG

1.47 kBTypeScriptView Raw
1import React from 'react';
2import { TextStyle, StyleProp, TextProps, ViewProps, StatusBarProps, StatusBarStyle, ImageSourcePropType, ImageStyle, ViewStyle } from 'react-native';
3import { RneFunctionComponent } from '../helpers';
4import { IconObject } from '../icons/Icon';
5interface HeaderIcon extends IconObject {
6 icon?: string;
7 text?: string;
8 color?: string;
9 style?: StyleProp<TextStyle>;
10}
11declare type HeaderSubComponent = React.ReactElement<{}> | TextProps | HeaderIcon;
12export declare type HeaderProps = ViewProps & {
13 ViewComponent?: typeof React.Component;
14 linearGradientProps?: Object;
15 statusBarProps?: StatusBarProps;
16 barStyle?: StatusBarStyle;
17 leftComponent?: HeaderSubComponent;
18 centerComponent?: HeaderSubComponent;
19 rightComponent?: HeaderSubComponent;
20 backgroundColor?: string;
21 backgroundImage?: ImageSourcePropType;
22 backgroundImageStyle?: ImageStyle;
23 placement?: 'left' | 'center' | 'right';
24 containerStyle?: StyleProp<ViewStyle>;
25 centerContainerStyle?: StyleProp<ViewStyle>;
26 leftContainerStyle?: StyleProp<ViewStyle>;
27 rightContainerStyle?: StyleProp<ViewStyle>;
28 children?: JSX.Element[];
29 elevated?: boolean;
30};
31declare const Header: RneFunctionComponent<HeaderProps>;
32export { Header };
33declare const _default: React.FunctionComponent<Omit<HeaderProps, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<HeaderProps>;
34export default _default;