From 4b286a093ce1978d0a4700a836faf9032452a73e Mon Sep 17 00:00:00 2001 From: Dominic Go <18517029+dominicstop@users.noreply.github.com> Date: Sun, 1 May 2022 06:07:08 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AB=20WIP:=20Context=20Menu=20Auxiliar?= =?UTF-8?q?y=20Preview?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Expose `auxiliaryPreviewConfig` via props. --- src/components/ContextMenuView/ContextMenuView.tsx | 3 +++ src/components/ContextMenuView/ContextMenuViewTypes.ts | 1 + src/native_components/RNIContextMenuView.ts | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/components/ContextMenuView/ContextMenuView.tsx b/src/components/ContextMenuView/ContextMenuView.tsx index cdf09b0..7d6c9d4 100644 --- a/src/components/ContextMenuView/ContextMenuView.tsx +++ b/src/components/ContextMenuView/ContextMenuView.tsx @@ -46,6 +46,7 @@ export class ContextMenuView extends useActionSheetFallback, menuConfig, previewConfig, + auxiliaryPreviewConfig, shouldUseDiscoverabilityTitleAsFallbackValueForSubtitle, // event props onMenuWillShow, @@ -77,6 +78,7 @@ export class ContextMenuView extends // B. Pass down props... menuConfig, previewConfig, + auxiliaryPreviewConfig, onMenuWillShow, onMenuWillHide, onMenuWillCancel, @@ -224,6 +226,7 @@ export class ContextMenuView extends ref={r => { this.nativeRef = r! }} menuConfig={props.menuConfig} previewConfig={props.previewConfig} + auxiliaryPreviewConfig={props.auxiliaryPreviewConfig} // Events: `onPress`-Related onMenuWillShow={this._handleOnMenuWillShow} diff --git a/src/components/ContextMenuView/ContextMenuViewTypes.ts b/src/components/ContextMenuView/ContextMenuViewTypes.ts index c5aa9f8..cbae172 100644 --- a/src/components/ContextMenuView/ContextMenuViewTypes.ts +++ b/src/components/ContextMenuView/ContextMenuViewTypes.ts @@ -9,6 +9,7 @@ export type RenderItem = () => React.ReactElement; export type ContextMenuViewBaseProps = Pick