React-native-router-flux: IndicatorStyle not working on Tabs. Any update?

Created on 4 Nov 2017  路  4Comments  路  Source: aksonov/react-native-router-flux

Version

  • react-native-router-flux v4.0.0 beta-22
  • react-native v0.48.4

Expected behaviour

To show border on the bottom of the active tab

Actual behaviour

No border is showing, indicator not working

Steps to reproduce

Just make a router with tab scene .

<Tabs
              key="tabbar"
              lazy={true}
              headerMode="none"
              tabBarPosition="bottom"
              swipeEnabled
              showLabel={false}
              activeTintColor="#fff"
              activeBackgroundColor="#EF5350"
              inactiveBackgroundColor="#EF5350"
              indicatorStyle={{
                 backgroundColor: '#fff',
                 borderBottomColor: '#fff',
                 borderBottomWidth: 2
              }}
>

enhancement help wanted

All 4 comments

It is not supported. Feel free to submit PR to support it.

Try using <Scene tabs> . Mine's working with that code.

<Scene 
                    key = 'list' 
                    tabs 
                    tabBarPosition = 'top'
                    showLabel = {true}  
                    title = 'List'                          
                    icon = {searchIcon}
                    tabBarStyle = {styles.tabBarStyle} 
                    labelStyle = {styles.txtLabel}
                    indicatorStyle = {styles.indicatorStyle}
>
     . . . . . .
</Scene>

I had the same problem as @aksonov at first. No matter what I sent to the indicatorStyle prop, its seemed to stay the default yellow.
My problem is I was trying to only override the color and not also the other properties. When I added the borderBottomWidth property, it started working for me.

Please try to reproduce it with Example project and latest version 4.0.0-beta.40. Feel free to open if the issue still exists

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rafaelcorreiapoli picture rafaelcorreiapoli  路  3Comments

kirankalyan5 picture kirankalyan5  路  3Comments

willmcclellan picture willmcclellan  路  3Comments

tonypeng picture tonypeng  路  3Comments

wootwoot1234 picture wootwoot1234  路  3Comments