Skip to content

Commit 88ee63d

Browse files
Adjusted ref type of BaseMiniContextMenuItem
1 parent 860bdc5 commit 88ee63d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/components/BaseMiniContextMenuItem.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type {ForwardedRef} from 'react';
21
import React from 'react';
32
import type {PressableStateCallbackType} from 'react-native';
43
import {View} from 'react-native';
@@ -41,7 +40,7 @@ type BaseMiniContextMenuItemProps = {
4140
/**
4241
* Reference to the outer element
4342
*/
44-
ref?: ForwardedRef<View>;
43+
ref?: PressableRef;
4544
};
4645

4746
/**
@@ -57,7 +56,7 @@ function BaseMiniContextMenuItem({tooltipText, onPress, children, isDelayButtonS
5756
shouldRender
5857
>
5958
<PressableWithoutFeedback
60-
ref={ref as PressableRef}
59+
ref={ref}
6160
onPress={onPress}
6261
onMouseDown={(event) => {
6362
if (!ReportActionComposeFocusManager.isFocused() && !ReportActionComposeFocusManager.isEditFocused()) {

0 commit comments

Comments
 (0)