mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 09:13:43 +08:00
pass screenProps to TabBarComponent (#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
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user