vonovak / react-navigation-header-buttons

Easily render header buttons for react-navigation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to pass TouchableProps in <Item />

Stophface opened this issue · comments

How do I pass TouchableProps like disabled through the <Item /> component?

<Item
        onPress={() => foo(avatar)}
        title='Save'
        TouchableProps={{ disabled: isEqual(what, ever) }} />

This is not how it works.

@vonovak
Unfortunatly that is not answering my Question. How do I pass TouchableProps through? Plus, if I use <HeaderButton /> but do not want an Icon, can I use <HeaderButton /> with text only too.

hello again, I'm sorry but I do not know what you are looking for. You asked how to pass eg. disabled prop and the link answers the question. There is no such thing as TouchableProps that you could pass and I don't know what that should do anyway...?
If you rephrase your question then I can answer but right now I don't know what you're after 🙂 Thanks :)

Aaah, okay. I thought with Touchable Props I can pass props to the underlying Touchable -> Touchable Opacity from RN.