Skip to content

Commit 2dd6627

Browse files
committed
escape hatch for testing
1 parent 8ea08fb commit 2dd6627

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

packages/zeego/src/menu/create-ios-menu/index.ios.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ If you want to use a custom component as your <Content />, you can use the creat
583583
onMenuDidShow={onMenuDidShow}
584584
onMenuWillHide={onMenuWillHide}
585585
onMenuWillShow={onMenuWillShow}
586+
{...props.__unsafeIosProps}
586587
>
587588
{triggerItem}
588589
</Component>

packages/zeego/src/menu/types.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ import type { MenuContentProps as RadixContentProps } from '@radix-ui/react-drop
33
import type {
44
ContextMenuView,
55
MenuAuxiliaryPreviewConfig,
6+
ContextMenuButton,
67
} from 'react-native-ios-context-menu'
78
import type {
89
ImageOptions,
910
ImageSystemSymbolConfiguration,
1011
} from 'react-native-ios-context-menu/lib/typescript/types/ImageItemConfig'
1112

1213
import type { SFSymbol } from 'sf-symbols-typescript'
14+
import type { ComponentProps } from 'react'
1315

1416
type ViewStyle = React.ComponentProps<typeof View>['style']
1517
type TextStyle = React.ComponentProps<typeof Text>['style']
@@ -24,6 +26,10 @@ export type MenuRootProps = {
2426
* @platform `ios`
2527
*/
2628
onOpenWillChange?: (willOpen: boolean) => void
29+
30+
__unsafeIosProps?:
31+
| ComponentProps<typeof ContextMenuView>
32+
| ComponentProps<typeof ContextMenuButton>
2733
}
2834

2935
/**

0 commit comments

Comments
 (0)