import * as React from "react"; import type { $Omit } from "../types"; import AppbarAction from "./AppbarAction"; import type { StyleProp, ViewStyle } from "react-native"; declare type Props = $Omit, "icon"> & { /** * Custom color for back icon. */ color?: string; /** * Name of the icon to show. */ icon?: React.ReactElement; /** * Optional icon size. */ size?: number; /** * Whether the button is disabled. A disabled button is greyed out and `onPress` is not called on touch. */ disabled?: boolean; /** * Accessibility label for the button. This is read by the screen reader when the user taps the button. */ accessibilityLabel?: string; /** * Function to execute on press. */ onPress?: () => void; style?: StyleProp; }; /** * A component used to display a back button in the appbar. * *
*
* *
Android
*
*
* *
*
* *
iOS
*
*
* * ## Usage * ```js * import * as React from 'react'; * import Appbar from 'react-native-simple-elements/components/Appbar'; * * * const MyComponent = () => ( * * {}} /> * * ); * * export default MyComponent; * ``` */ declare const AppbarBackAction: { ({ icon, accessibilityLabel, ...rest }: Props): JSX.Element; displayName: string; }; export default AppbarBackAction;