From 2fb301fa314cf5387c336fe616822652ffdb5847 Mon Sep 17 00:00:00 2001 From: Kyle Fang Date: Mon, 29 Mar 2021 10:26:36 +0800 Subject: [PATCH] fix: mark onPress as optional --- src/components/menu/types.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/menu/types.d.ts b/src/components/menu/types.d.ts index 8dbf319..debeb2f 100644 --- a/src/components/menu/types.d.ts +++ b/src/components/menu/types.d.ts @@ -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;