File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ render() {
24
24
values= {[' Segment1' , ' Segment2' , ' Segment3' ]}
25
25
onChange= {(currentIndex ) => {}}
26
26
disable= {false }
27
+ selectedIndex= {1 }
27
28
/ >
28
29
< / View>
29
30
)
@@ -37,6 +38,13 @@ render() {
37
38
| ** ` disable ` ** | ` Boolean ` | Enable / Disable the entire component. Default is false.|
38
39
| ** ` values ` ** | ` Array(String) ` | The labels for the control's segment buttons, in order.|
39
40
| ** ` onChange ` ** | ` function ` | Callback that is called when the user taps a segment.|
41
+ | ** ` selectedIndex ` ** | ` Number ` | Index of the selected segment.|
42
+ | ** ` offsetHeight ` ** | ` Number ` | Active Segment's offset height.|
43
+ | ** ` style ` ** | ` function ` | Styles props of segment control.|
44
+ | ** ` segmentControlStyle ` ** | ` function ` | Styles props of segment control.|
45
+ | ** ` activeSegmentStyle ` ** | ` function ` | Styles props of active segment view.|
46
+ | ** ` selectedTextStyle ` ** | ` function ` | Selected Segment's text style.|
47
+ | ** ` unSelectedTextStyle ` ** | ` function ` | Unselected Segment's text style.|
40
48
41
49
## License
42
50
You can’t perform that action at this time.
0 commit comments