Skip to content

Allow non-string headers in TabbedPanel #1459

Open
@tpetrucciani

Description

@tpetrucciani

Currently TabbedPanel accepts only string headers. However, since it simply renders the header, accepting other React elements should be possible, and it would be useful to display SVG icons.

As an example, passing a header like

(
  <View shrink={false} vAlignContent="bottom">
    <MySvgIcon/>
    {label}
  </View>
) as any,

(bypassing type checking) seems to work OK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions