- Notifications
You must be signed in to change notification settings - Fork 93
Closed
Description
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
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
Labels
No labels