import * as React from "react"; import { StyleProp, ViewStyle } from "react-native"; import { Appbar } from "./Appbar"; import { DefaultTheme } from "styled-components"; declare type Props = React.ComponentProps & { /** * Whether the background color is a dark color. A dark header will render light text and vice-versa. */ dark?: boolean; /** * Extra padding to add at the top of header to account for translucent status bar. * This is automatically handled on iOS >= 11 including iPhone X using `SafeAreaView`. * If you are using Expo, we assume translucent status bar and set a height for status bar automatically. * Pass `0` or a custom value to disable the default behaviour, and customize the height. */ statusBarHeight?: number; /** * Content of the header. */ children: React.ReactNode; /** * @optional */ theme?: DefaultTheme; style?: StyleProp; }; /** * A component to use as a header at the top of the screen. * It can contain the screen title, controls such as navigation buttons, menu button etc. * *
*
* *
Android
*
*
* *
iOS
*
*
* * ## Usage * ```js * import * as React from 'react'; * import Appbar from 'react-native-simple-elements/components/Appbar'; * * const MyComponent = () => { * const _goBack = () => console.log('Went back'); * * const _handleSearch = () => console.log('Searching'); * * const _handleMore = () => console.log('Shown more'); * * return ( * * * * * * * ); * }; * * export default MyComponent; * ``` */ declare const AppbarHeader: { (props: Props): JSX.Element; displayName: string; }; export default AppbarHeader; declare const AppbarHeaderWithTheme: { (props: Props): JSX.Element; displayName: string; }; export { AppbarHeaderWithTheme as AppbarHeader };