Skip to content

Support for icons? #71

@cmmartin

Description

@cmmartin

Feature Request

Currently the values prop accepts an array of strings to display as the label. I'd like to use icons instead. This should be supported on the native side. See the below in Safari -> Bookmarks

Screen Shot 2020-04-18 at 5 23 15 PM

Possible implementation

Code sample

I'm not sure how this would work on the native side yet, but we can add a renderLabel prop, so you could do...

const renderLabel = value => <Icon name={icons[value]} /> <SegmentedControl values={['foo', 'bar', 'baz']} renderLabel={renderLabel} />

Any workarounds or thoughts on the native implementation are appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions