vonovak / react-navigation-header-buttons

Easily render header buttons for react-navigation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I disable the button? Like on iOS .isEnabled = false

app-arianamini opened this issue · comments

I don't mean hide and show the button, I wand enable or disable the header button icon based on my conditions.

hello, currently, this is done by no passing an onPress handler. You can also try passing disabled prop, might work too. see https://github.com/vonovak/react-navigation-header-buttons/blob/master/example/screens/UsageDisabled.tsx