Skip to content

TabNavigator.js 中无法设置StackNavigator属性,比如headerTitle #1

@daogeng

Description

@daogeng

Details.js
export default class DetailsScreen extends PureComponent {
render() {return()}
}

Home.js
export default class HomeScreen extends PureComponent {
render() {return() }
}

Profile.js
export default class ProfileScreen extends PureComponent {
render() {return() }
}

TabNavigator.js
export default createBottomTabNavigator({
Home: {
screen: Home,
navigationOptions: ({ navigation }) => ({

        header: null,
        headerTitle: '首页',

        tabBarLabel: '昭阳医生',
    })
},
Profile: ProfileStack

});

RouteConfig.js
const RouteConfig = {
MainTab: {
screen: MainTab,
// navigationOptions: ({navigation}) => ({header: null})
},
Details: {
screen: DetailsScreen,
}
};

export default RouteConfig;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions