import * as React from "react"; import { TextStyle, ViewStyle, StyleProp } from "react-native"; import { DefaultTheme } from "styled-components"; declare type Props = { /** * Title text for the `MenuItem`. */ title: React.ReactNode; /** * Icon to display for the `MenuItem`. */ icon?: React.ReactElement; /** * Whether the 'item' is disabled. A disabled 'item' is greyed out and `onPress` is not called on touch. */ disabled?: boolean; /** * Function to execute on press. */ onPress?: () => void; /** * @optional */ theme?: DefaultTheme; style?: StyleProp; contentStyle?: StyleProp; titleStyle?: StyleProp; /** * TestID used for testing purposes */ testID?: string; }; /** * A component to show a single list item inside a Menu. * *
*
* *
*
* * ## Usage * ```js * import * as React from 'react'; * import { View } from 'react-native'; * import { MenuItem } from 'react-native-simple-elements/components/Menu'; * * const MyComponent = () => ( * * {}} title="Redo" /> * {}} title="Undo" /> * {}} title="Cut" disabled /> * {}} title="Copy" disabled /> * {}} title="Paste" /> * * ); * * export default MyComponent; * ``` */ declare const MenuItem: { (props: Props): JSX.Element; displayName: string; }; export default MenuItem; export { MenuItem };