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

Tabs label / text colour change #2369

Closed
tasharofi opened this issue Sep 12, 2017 · 2 comments
Closed

Tabs label / text colour change #2369

tasharofi opened this issue Sep 12, 2017 · 2 comments

Comments

@tasharofi
Copy link

I have both icons and labels displayed for each tab on tabs element (showLabel set to true which is default anyway).
I can change the icon colour by passing "focuses" props to the tabIcon component but haven't been able to set the focused tab text / label colour.

I know about the following which when its set in the tabs element

labelStyle={{ color: '#....' }}

it changes all the text colour (focused and not focused) to what I set and it does not care whether its focused or not.

Now how can I change the tab label colour depending on focused or not focused?

Thanks,

Version

  • react-native-router-flux v4.0.0-beta.21
  • react-native v0.48.1
@onrige
Copy link
Collaborator

onrige commented Sep 12, 2017

Hey. Just have a look at the API docs.
https://github.com/aksonov/react-native-router-flux/blob/master/docs/API.md#tabs-tabs-or-scene-tabs

You are probably looking for activeTintColor and inactiveTintColor properties.

@tasharofi
Copy link
Author

Great thanks that was it. Closing the issue

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

2 participants