Skip to content

Preview Events / Custom Preview Component #155

@BR1G00

Description

@BR1G00

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions