1 | import React from 'react';
|
2 | import { TextStyle, StyleProp, TextProps, ViewProps, StatusBarProps, StatusBarStyle, ImageSourcePropType, ImageStyle, ViewStyle } from 'react-native';
|
3 | import { RneFunctionComponent } from '../helpers';
|
4 | import { IconObject } from '../icons/Icon';
|
5 | interface HeaderIcon extends IconObject {
|
6 | icon?: string;
|
7 | text?: string;
|
8 | color?: string;
|
9 | style?: StyleProp<TextStyle>;
|
10 | }
|
11 | declare type HeaderSubComponent = React.ReactElement<{}> | TextProps | HeaderIcon;
|
12 | export 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 | };
|
31 | declare const Header: RneFunctionComponent<HeaderProps>;
|
32 | export { Header };
|
33 | declare 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>;
|
34 | export default _default;
|