import * as React from "react"; import { View, StyleProp, ViewStyle } from "react-native"; import { DefaultTheme } from "styled-components"; declare type Props = React.ComponentPropsWithRef & { /** * The label text of the item. */ label: string; /** * Icon to display for the `DrawerItem`. */ icon?: React.ReactElement; /** * Whether to highlight the drawer item as active. */ active?: boolean; /** * Function to execute on press. */ onPress?: () => void; /** * Accessibility label for the button. This is read by the screen reader when the user taps the button. */ accessibilityLabel?: string; style?: StyleProp; /** * @optional */ theme?: DefaultTheme; }; /** * A component used to show an action item with an icon and a label in a navigation drawer. * *
*
* *
*
* * ## Usage * ```js * import * as React from 'react'; * import { DrawerItem } from 'react-native-simple-elements/components/Drawer'; * * const MyComponent = () => ( * * ); * * export default MyComponent; * ``` */ declare const DrawerItem: { ({ icon, label, active, style, onPress, accessibilityLabel, ...rest }: Props): JSX.Element; displayName: string; }; export default DrawerItem;