react-native-context-menu-view icon indicating copy to clipboard operation
react-native-context-menu-view copied to clipboard

Preview Events / Custom Preview Component

Open BR1G00 opened this issue 7 months ago • 1 comments

Hi! First of all, thanks for the great library 🙌

I'm using ContextMenuView in a React Native project and I'm having a limitation with the preview.

It would be very useful to have:

An event callback when opening and closing the preview, like onPreviewWillShow / onPreviewDidDismiss, or

The ability to completely customize the preview, for example by passing a different React component than the trigger one.

At the moment, I don't see a direct way to achieve this with the current API.

Example of use: My card contains some text cut off due to the narrow dimensions, I would like that when the preview opens I could enlarge the card and have all the content read.

Thanks

BR1G00 avatar May 06 '25 21:05 BR1G00

check this https://github.com/enesozturk/react-native-hold-menu/pull/103

fukemy avatar Jun 23 '25 09:06 fukemy