UNPKG

2.96 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<Pick<HeaderProps, "style" | "onLayout" | "testID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "backgroundColor" | "nativeID" | "hitSlop" | "hasTVPreferredFocus" | "tvParallaxProperties" | "containerStyle" | "children" | "pointerEvents" | "removeClippedSubviews" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "linearGradientProps" | "ViewComponent" | "placement" | "statusBarProps" | "barStyle" | "leftComponent" | "centerComponent" | "rightComponent" | "backgroundImage" | "backgroundImageStyle" | "centerContainerStyle" | "leftContainerStyle" | "rightContainerStyle" | "elevated">> | React.ForwardRefExoticComponent<HeaderProps>;
34export default _default;