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

Best way to update custom Tabbar? #2324

Closed
luco opened this issue Sep 1, 2017 · 1 comment
Closed

Best way to update custom Tabbar? #2324

luco opened this issue Sep 1, 2017 · 1 comment

Comments

@luco
Copy link
Contributor

luco commented Sep 1, 2017

I'm trying to update my tabbar messages tab badge with a number.
I'm currently using mobx, but it seems that the tabbar component doesn't update directly with mobx.
So I tried to pass it as a prop to tabbar, but it updates the entire tabbar scene, causing a flick.

So I removed this prop. When I switch tabs, it updates the number.

Any tips on this? Is there a way to update only the custom tabbar?

Thanks in advance

@luco
Copy link
Contributor Author

luco commented Sep 1, 2017

Nevermind. Got it working by using component directly.

@luco luco closed this as completed Sep 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

1 participant