-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Tab bar styling #2313
Comments
For #2, the attribute selected changed to |
I looked into your first issue, you should be able to use I will update the docs for these props. |
Docs are updated, thanks to @mcabs3 |
@aksonov i couldn't find it in the docs. i was at a loss of why selected prop wasn't working until i found this thread |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
Tell us which versions you are using:
Problem
I recently migrated from v3 and I have a hard time styling my main tab bar.
I have two goals:
Change the color of the top border of the tab bar:
I've tried the tabBarStyle prop, but it doesn't seem to work anymore and I didn't find a specific prop for that in your documentation.
Change the icon color of my active tab:
With v3 I used the 'icon' prop of the nested scenes and computed the icon based on the title and the selected boolean:
But now, the selected boolean is always undefined...
I thought that it was the role of activeTintColor now, so I removed the color prop of my icons and set the activeTintColor prop to the desired value, without success...
Do you have any idea?
Thanks!
Scene:
The text was updated successfully, but these errors were encountered: