Skip to content

Support for custom tab button component for center buttons #105

Open
@LadislavBohm

Description

@LadislavBohm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions