Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot style bottom border of active tab #3145

Closed
Twinbird24 opened this issue Jul 25, 2018 · 3 comments
Closed

Cannot style bottom border of active tab #3145

Twinbird24 opened this issue Jul 25, 2018 · 3 comments

Comments

@Twinbird24
Copy link

Twinbird24 commented Jul 25, 2018

Version

  • react-native-router-flux v4.0.0-beta.26

Expected behaviour

To be able to change the style of the actively selected tab's bottom border.

Actual behaviour

There does not appear to be a prop to change the actively selected tab's bottom border (see screen shot, the border of that active tab is yellow–I cannot change it). Setting the style in the tabStyle prop doesn't change the expected behaviour, i.e. tabStyle={{ borderBottomWidth: 1, borderBottomColor: 'blue' }} doesn't effect the color of the selected tab's bottom border.

screen shot 2018-07-25 at 2 52 58 pm

Steps to reproduce

I have my code structured like so:

<Tabs
  key="tabsContainer"
  showLabel={true}
  tabBarPosition='top'
  title="Tabs Container"
  wrap={false}
  back
  lazy
  activeBackgroundColor="red"
  tabBarStyle={{ backgroundColor: 'white' }}
  activeTintColor="black"
  inactiveTintColor="black"
>
  <Scene
    key="key"
    component={myComponent}
    onEnter={trackPage}
    title="Tab 1"
    onLeft={() => { Actions.pop(); }}
  />
  <Scene
    key="key2"
    component={myComponent}
    onEnter={trackPage}
    title="Tab 2"
    onLeft={() => { Actions.pop(); }}
  />
  <Scene
    key="key3"
    component={myComponent}
    onEnter={trackPage}
    title="Tab 3"
    onLeft={() => { Actions.pop(); }}
  />
</Tabs>
@Maple13
Copy link

Maple13 commented Aug 6, 2018

I also encountered this problem, is there a solution? My version is 4.0.0-beta.31

@Maple13
Copy link

Maple13 commented Aug 6, 2018

@Twinbird24 Hey! You can look at #504, Use indicatorStyle can cover underscore

@aksonov
Copy link
Owner

aksonov commented Aug 8, 2018

Closing it (indicatorStyle should be used)

@aksonov aksonov closed this as completed Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants