Skip to content

Commit a0c1677

Browse files
committed
fix: fix a typescript issue with newer versions of react native
1 parent deed0fd commit a0c1677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/overflowMenu/vendor/MenuItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export type Props = {
2727
/**
2828
* Function to execute on press.
2929
*/
30-
onPress?: null | ((params?: GestureResponderEvent) => void) | undefined;
30+
onPress?: (params?: GestureResponderEvent) => void;
3131
/**
3232
* @optional
3333
*/

0 commit comments

Comments
 (0)