Skip to content

Commit 3f0577f

Browse files
koenpuntsatya164
authored andcommitted
pass screenProps to TabBarComponent (react-navigation#1841)
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
1 parent 8d91753 commit 3f0577f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/views/TabView/TabView.js

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ class TabView extends PureComponent<void, Props, void> {
121121
<TabBarComponent
122122
{...props}
123123
{...tabBarOptions}
124+
screenProps={this.props.screenProps}
124125
navigation={this.props.navigation}
125126
getLabel={this._getLabel}
126127
renderIcon={this._renderIcon}

0 commit comments

Comments
 (0)