Skip to content

Commit

Permalink
pass screenProps to TabBarComponent (react-navigation#1841)
Browse files Browse the repository at this point in the history
To support for example filtering the tabs based on a property passed to a parent navigator, I need to have to access to the screenProps in the tab bar
  • Loading branch information
koenpunt authored and satya164 committed Jun 12, 2017
1 parent 8d91753 commit 3f0577f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/views/TabView/TabView.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class TabView extends PureComponent<void, Props, void> {
<TabBarComponent
{...props}
{...tabBarOptions}
screenProps={this.props.screenProps}
navigation={this.props.navigation}
getLabel={this._getLabel}
renderIcon={this._renderIcon}
Expand Down

0 comments on commit 3f0577f

Please sign in to comment.