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

Can't hide tab icon #2450

Closed
bjarkof opened this issue Sep 30, 2017 · 2 comments
Closed

Can't hide tab icon #2450

bjarkof opened this issue Sep 30, 2017 · 2 comments

Comments

@bjarkof
Copy link

bjarkof commented Sep 30, 2017

Tell us which versions you are using:
4.0.0-beta.21

I'm trying to hide the tab icon. I have tried setting the "icon" prop to null and also not specifying one at all. Are there any way to do this, without making a custom tabbar?

@mcabs3
Copy link
Collaborator

mcabs3 commented Sep 30, 2017

By default there are no tab icons provided. just the tabBarLabel. Can you provide more context to your situation?

@bjarkof
Copy link
Author

bjarkof commented Oct 1, 2017

I solved this by adding showIcon={false} to the Tabs component. I dont know why, but even though I had not provided an icon prop on the child scenes, there was visually left "room" for the icons, so that the labels were not centered at the tabs.

@bjarkof bjarkof closed this as completed Oct 1, 2017
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