segmented-control icon indicating copy to clipboard operation
segmented-control copied to clipboard

Large variant

Open dylancom opened this issue 5 years ago • 3 comments

Feature request

In a lot of apps I'm seeing a slightly larger / bigger variant of the segmented control. See for e.g.:

  • The GitHub iOS app if you navigate to Home > Issues.
  • Safari > Bookmarks.

Why it is needed

When using the segmented control as top tab navigation it's ux wise nice to have bigger buttons.

Possible implementation

I think the native module has some way of adding more padding / adjusting the height.

Code sample

<SegmentedControl
    large={true}
/>

dylancom avatar Jun 03 '20 09:06 dylancom

EDIT: seems you can already do this by providing a style prop: style={{ height: 40 }} Maybe this should be more clear in the docs.

dylancom avatar Jun 04 '20 14:06 dylancom

@dylancom thanks for the suggestion! I'll add info about styling in the docs

Naturalclar avatar Jun 05 '20 12:06 Naturalclar

Is there a way to add a backgroundColor to the active Tab?

Edit i see I can add color for tintColor prop now if I want to add some style for this tab "active tab" like border Radius! when I add it for the style prop, it's applied for the Tab container itself 😅

here's a snack as you have seen the end of active tab not curved 😅

What expected behavior Screen Shot 2020-09-02 at 3 17 01 PM

anastely avatar Sep 02 '20 11:09 anastely