React-native-router-flux: Multiple navigationBar buttons with renderRightButton

Created on 15 Mar 2016  路  2Comments  路  Source: aksonov/react-native-router-flux

I want two buttons on the right side of the navigationBar.

I want to be able to pass an array of my buttons like this:
renderRightButton={[this.searchButton, this.newButton]}
but it gives me this error:
this.route.props.renderRightButton.bind is not a function.

Note: padding a single button here that isn't an array works...

Most helpful comment

So is it possible to render multiple buttons and where in the docs can I find an example?

All 2 comments

Check docs carefully. renderRightButton is _closure_ (function) not array.

So is it possible to render multiple buttons and where in the docs can I find an example?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VictorK1902 picture VictorK1902  路  3Comments

basdvries picture basdvries  路  3Comments

YouYII picture YouYII  路  3Comments

moaxaca picture moaxaca  路  3Comments

tonypeng picture tonypeng  路  3Comments