react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

[V2][IOS] bottomTab Title do not show

Open qiepeipei opened this issue 8 years ago • 3 comments

Issue Description

[RNN2 IOS bottomTab Title do not show . android no problem ]

Steps to Reproduce / Code Snippets / Screenshots

      Navigation.setRoot({
        bottomTabs: {
            children: [
              {
                stack: {
                  children: [
                    {
                      component: {
                        name: 'navigation.GoodsScreen',
                        passProps: {
                        },
                        options: {
                          topBar: {
                            visible: false,
                            animate: false,
                          }
                        }
                      }
    
                    }
                  ],
                  options: {
                    bottomTab: {
                      title: "aaa",
                      icon: require('../images/transport.png'),
                      testID: 'FIRST_TAB_BAR_BUTTON1',
                    }
                  }
                }
              },
              {
                stack: {
                  children: [
                    {
                      component: {
                        name: 'navigation.FunctionScreen',
                        passProps: {
                        },
                        options: {
                          topBar: {
                            visible: false,
                            animate: false,
                          }
                        }
                      }
    
                    }
                  ],
                  options: {
                    bottomTab: {
                      title: 'bbb',
                      icon: require('../images/function.png'),
                      testID: 'FIRST_TAB_BAR_BUTTON2'
                    }
                  }
                }
              },
              {
                stack: {
                  children: [
                    {
                      component: {
                        name: 'navigation.UserScreen',
                        passProps: {
                        },
                        options: {
                          topBar: {
                            visible: false,
                            animate: false,
                          }
                        }
                      }
    
                    }
                  ],
                  options: {
                    bottomTab: {
                      title: 'ccc',
                      icon: require('../images/contacts.png'),
                      testID: 'FIRST_TAB_BAR_BUTTON3'
                    }
                  }
                }
              }
            ],
            options: {
              
              bottomTabs: {
                hideBackButtonTitle:false,
                tabColor: 'rgba(163,165,168,1)',
                selectedTabColor: 'rgba(38,152,243,1)',
                backgroundColor: 'white',
                fontSize: 12,
                testID: 'BOTTOM_TABS_ELEMENT'
              },
              topBar:{
                visible: false,
              }
            }
          }
      });

image


Environment

  • React Native Navigation version: 2.0.2241
  • React Native version: 0.54.4
  • Platform(s) (iOS, Android, or both?): iOS

qiepeipei avatar Apr 20 '18 10:04 qiepeipei

@yogevbd Seems like this reproduces in the playground app as well. If this is a regression, let's improve our coverage.

guyca avatar Apr 21 '18 06:04 guyca

@qiepeipei Fixed. thanks

yogevbd avatar Apr 22 '18 08:04 yogevbd

Upgrade the latest version is no problem . thank

qiepeipei avatar Apr 24 '18 01:04 qiepeipei