Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

How to hide the menus? #408

Open
lopesclayton opened this issue Jun 17, 2020 · 7 comments
Open

How to hide the menus? #408

lopesclayton opened this issue Jun 17, 2020 · 7 comments

Comments

@lopesclayton
Copy link

How to hide the menus?

@reyn-nova
Copy link

reyn-nova commented Jun 20, 2020

@lopesclayton did you mean hide the image index? see #191

@hengkx
Copy link

hengkx commented Jun 26, 2020

image

@Ripplz
Copy link

Ripplz commented Sep 29, 2020

I still can't remove the menus. Any one got a fix for this?

The menus don't show up when I set the menus={() => {}}, but something still happens when the image is long pressed, and without the 'cancel' button showing, I can't do anything in the component when that happens.

This should be easy enough to accomplish, please look into it.

@Ripplz
Copy link

Ripplz commented Sep 29, 2020

I just discovered you can hide the menus by setting the saveToLocalByLongPress prop to false. The prop name is not intuitive enough, though, but it works for me. @lopesclayton

@zeabdelkhalek
Copy link

menus={() => null}

@deivisondc
Copy link

deivisondc commented May 27, 2021

I was able to remove the menu adding these two props

menus={() => null}
menuContext={null}

@bjornlll
Copy link

To anyone else reading this, @Ripplz solution is correct: Set saveToLocalByLongPress to false.

The other solutions using menu or menuContext locks up the image viewer, preventing any other interaction from happening.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants