SegmentedControlIOS to render a UISegmentedControl iOS.
The selected index can be changed on the fly by assigning the selectIndex prop to a state variable, then changing that variable. Note that the state variable would need to be updated as the user selects a value and changes the index, as shown in the example below.
If false the user won't be able to interact with the control. Default value is true.
If true, then selecting a segment won't persist visually.
onValueChange callback will still work as expected.
Callback that is called when the user taps a segment; passes the event as an argument
Callback that is called when the user taps a segment; passes the segment's value as an argument
The index in
props.values of the segment to be (pre)selected.
Accent color of the control.
The labels for the control's segment buttons, in order.
You can edit the content above on GitHub and send us a pull request!