Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

Can't change labelStyle color in <TabBar> #1175

Closed
enigmablue opened this issue May 2, 2021 · 2 comments
Closed

Can't change labelStyle color in <TabBar> #1175

enigmablue opened this issue May 2, 2021 · 2 comments
Labels

Comments

@enigmablue
Copy link

enigmablue commented May 2, 2021

Unfortunately, something as simple as the code below, changing the labelStyle color dosen't work.

Anyone know what is the right way? i checked all the examples but dont see an example.

I checked the TabBar.tsx and it looks like just a StyleProp;

  <TabBar
    {...props}
    indicatorStyle={{ backgroundColor: '#29ad60' }}
    labelStyle={{ color: 'black',  fontSize: 20}}
    style={{ backgroundColor: '#3f51b5', color:"green" }}
  />

"react-native-tab-view": "^3.0.1",
"react-native": "0.63.3",
"react-native-pager-view": "^5.1.2",

@enigmablue enigmablue added the bug label May 2, 2021
@github-actions
Copy link

github-actions bot commented May 2, 2021

Couldn't find version numbers for the following packages in the issue:

  • react-native
  • react-native-tab-view
  • react-native-pager-view

Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.

@kutsan
Copy link

kutsan commented May 5, 2021

#583 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants