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:
Koen Punt
2017-06-12 15:50:31 +02:00
parent 9a3ea30b3d
commit 11c54ee4af

View File

@@ -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}