mirror of
https://github.com/zhigang1992/react-native-hold-menu.git
synced 2026-06-16 11:59:35 +08:00
fix: mark onPress as optional
This commit is contained in:
2
src/components/menu/types.d.ts
vendored
2
src/components/menu/types.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user