React-native-navigation: [Android]: Tab Bar color not working

Created on 15 May 2018  ·  2Comments  ·  Source: wix/react-native-navigation

Issue Description

Styling the tab bar does not work on Android even though the docs state these should work cross platform, which leads me to believe there is something missing in my code.

Steps to Reproduce / Code Snippets / Screenshots

export const Colors = {
  Yellow: '#f7ca02',
  ButtonGrey: '#cdcdcd',
  White: '#ffffff',
  Black: '#000000',
  Blue: '#3755b0'
}
  Navigation.startTabBasedApp({
    animationType: 'fade',
    tabs: [
      {
        screen: Screens.Dispatches,
        icon: Icons.TabBar.Dispatches,
        label: 'Dispatches',
        title: 'Dispatches'
      },
      {
        screen: Screens.History,
        icon: Icons.TabBar.History,
        label: 'History',
        title: 'History'
      },
      {
        screen: Screens.Account,
        icon: Icons.TabBar.Account,
        label: 'Account',
        title: 'Account'
      }
    ],
    tabsStyle: {
      tabBarLabelColor: Colors.White,
      tabBarButtonColor: Colors.White,
      tabBarSelectedLabelColor: Colors.Yellow,
      tabBarSelectedButtonColor: Colors.Yellow,
      tabBarBackgroundColor: Colors.Black
    }
  })

iOS:
img_1337

Android:
screenshot_20180515-131948


Environment

  • React Native Navigation version: 1.1.458
  • React Native version: 0.55
  • Platform(s) (iOS, Android, or both?): Both
  • Device info (Simulator/Device? OS version? Debug/Release?): iPhone X vs Samsung Galaxy S7 Edge (both real devices)

Most helpful comment

Due to historical reasons, BottomTabs style on Android should be declared in appStyle
https://wix.github.io/react-native-navigation/#/styling-the-tab-bar

All 2 comments

Due to historical reasons, BottomTabs style on Android should be declared in appStyle
https://wix.github.io/react-native-navigation/#/styling-the-tab-bar

Due to historical reasons, BottomTabs style on Android should be declared in appStyle
https://wix.github.io/react-native-navigation/#/styling-the-tab-bar

Thank you very much. it is working in android correctly

Was this page helpful?
0 / 5 - 0 ratings

Related issues

edcs picture edcs  ·  3Comments

nbolender picture nbolender  ·  3Comments

charlesluo2014 picture charlesluo2014  ·  3Comments

yayanartha picture yayanartha  ·  3Comments

yedidyak picture yedidyak  ·  3Comments