fix: mark onPress as optional

This commit is contained in:
Kyle Fang
2021-03-29 10:26:36 +08:00
parent a46822b1b1
commit 2fb301fa31

View File

@@ -3,7 +3,7 @@ import { TransformOriginAnchorPosition } from '../../utils/calculations';
export type MenuItemProps = {
text: string;
icon?: () => React.ReactNode;
onPress: () => void;
onPress?: () => void;
isTitle?: boolean;
isDestructive?: boolean;
withSeperator?: boolean;