Skip to content

Commit e33e830

Browse files
committed
updated readme file
1 parent 5618bbe commit e33e830

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ render() {
2424
values={['Segment1', 'Segment2', 'Segment3']}
2525
onChange={(currentIndex) => {}}
2626
disable={false}
27+
selectedIndex={1}
2728
/>
2829
</View>
2930
)
@@ -37,6 +38,13 @@ render() {
3738
|**`disable`**|`Boolean`|Enable / Disable the entire component. Default is false.|
3839
|**`values`**|`Array(String)`|The labels for the control's segment buttons, in order.|
3940
|**`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.|
4048

4149
## License
4250

0 commit comments

Comments
 (0)