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

Support for custom tab button component for center buttons #105

Open
LadislavBohm opened this issue Apr 2, 2021 · 3 comments
Open

Support for custom tab button component for center buttons #105

LadislavBohm opened this issue Apr 2, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@LadislavBohm
Copy link

Feature Request

It would be great to support adding a tab that is not in any way handled by animated tabbar except for rendering it's component. That would allow me to implement a UI like this:

image

Where middle button is my custom component that handles it's press and everything. I am able to easily implement this using react navigation 5, but was not able to find a way to do it in animated tabbar because if I don't configure a tab component it throws.

Why it is needed

More flexibility in UI tab and implicit support for any custom per-tab behavior like custom animation.

Possible implementation

In routesWithTabConfig function you could skip routes you do not find in configuration and create a custom component tab instead. Then in all PresetComponents you would check if current tab is standard tab for given preset or custom one. If it's custom one you could just render it as it is?
It's very high level idea though.

@LadislavBohm LadislavBohm added the enhancement New feature or request label Apr 2, 2021
@gorhom
Copy link
Owner

gorhom commented Apr 6, 2021

i am working on a major release that will allow custom overrides for each tab item !

@alexghi
Copy link

alexghi commented Jun 8, 2021

@gorhom any updates on your new release? can I help?

@pekq
Copy link

pekq commented Jul 28, 2021

This would be great. My use case is to hide specific tabs. With the current version it's not possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants