React-native-navigation: [V2][Android] Initial BottomTabs background color is always white

Created on 10 Jun 2019  路  4Comments  路  Source: wix/react-native-navigation

Issue Description

The initial BottomTabs background color is always white.

Steps to Reproduce / Code Snippets / Screenshots

Navigation.setRoot with a bottom tabs layout with an different background color than white:

bottomTabs: {
    backgroundColor: '#333333',
}

Solution/Fix

Due to the fact that AHBottomNavigation sets the defaultBackgroundColor (white) on item creation. RNN should set the defaultBackgroundColor in the BottomTabsPresenter with the corresponding setter setDefaultBackgroundColor in lines 80 and 141.


Environment

  • React Native Navigation version: 2.21.0
  • React Native version: 0.59.9
  • Platform(s) (iOS, Android, or both?): Android
  • Device info (Simulator/Device? OS version? Debug/Release?): In every configuration
馃彋 stale

Most helpful comment

This issue is not resolved!

All 4 comments

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

The issue has been closed for inactivity.

This issue is not resolved!

Should be fixed in 57eb0db7da6d69c784a9b0cd5672a563901738a9

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zagoa picture zagoa  路  3Comments

zhanguangao picture zhanguangao  路  3Comments

yedidyak picture yedidyak  路  3Comments

edcs picture edcs  路  3Comments

viper4595 picture viper4595  路  3Comments