Skip to content

Commit f3382c6

Browse files
author
alvaromb
committed
Added API
1 parent a08d9f1 commit f3382c6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,21 @@ import CascadePicker from 'react-native-js-cascade-picker'
2525
/>
2626
```
2727

28+
## API
29+
30+
| Props | Type | Description | Required |
31+
| ------------------- | --------------- | ------------------------------------ | -------- |
32+
| `options` | `Array<Option>` | | **Yes** |
33+
| `pickerText` | `string` | | **Yes** |
34+
| `onChange` | `Function` | Returns an `Option`. | **Yes** |
35+
| `valueSelected` | `any` | A value to match into the `Option`s. |
36+
| `mainColor` | `string` | |
37+
| `selectedColor` | `string` | Color for the selected item. |
38+
| `itemColor` | `string` | Color for the items. |
39+
| `separatorColor` | `string` | Color for the separator. |
40+
| `selectedTextColor` | `string` | |
41+
| `optionTextStyle` | `any` | Style for the text option. |
42+
2843
## License
2944

3045
MIT.

0 commit comments

Comments
 (0)