TabNavigator Interactive Navigation Bar Displays Only First Tab

I am developing a reaction-based application, and I am using TabNavigator (reaction-navigation) with two simple tabs containing a login screen (both tabs have the same screen). the first tab is always displayed, but the second tab is not displayed.

I do not see errors. I run it on ios simulator (iPhone x, ios 11)

const LoginStack = StackNavigator({
    Login: {
        screen: SignIn,
        navigationOptions: {
            title: 'Sign In' //strings('screens.SignIn.title'),
        },
    },
}, {
 headerMode: 'screen',
});

export const SignedInTabs = TabNavigator
  Orders: {
      screen: LoginStack, //OrdersStack,
        navigationOptions: {
            tabBarLabel: 'login', //strings('tabs.Orders'),
            tabBarIcon: ({tintColor}) => ( <Icon name = "list" color = {tintColor} size = {28} />),
        },
  },
  Account: {
        screen: LoginStack,
        navigationOptions: {
            tabBarLabel: 'login', //strings('tabs.Account'),
            tabBarIcon: ({tintColor}) => ( <Icon name = "account-circle" color = {tintColor} size = {28} />),
        },
  },
 }, {
    tabBarPosition: 'bottom',
    tabBarComponent: TabBarBottom,
    tabBarOptions: {
        activeTintColor: '#FFF',
        activeBackgroundColor: colors.primaryTheme
    },
});

reaction-native version: 0.51.0

reaction version: 1.0.0-beta.27

node version: 6.11.0

version for npm: 3.10.10

The first tab displays well

2nd tab did not appear

+4
source share
1 answer
0

Source: https://habr.com/ru/post/1693129/


All Articles