Commit c9dd0f7d authored by xwenliang's avatar xwenliang

update Readme

parent 5270cd03
...@@ -9,37 +9,38 @@ ...@@ -9,37 +9,38 @@
#### Params #### Params
|Key | Description | Type | Default| |Key | Type | Default| Support | Description |
| --- | ----------- | ---- | ------ | | --- | --- | ---- | ------ | ----------- |
|pickerConfirmBtnText | |string |confirm | |isLoop | Boolean | false | Android | |
|pickerCancelBtnText | |string |cancel | |pickerConfirmBtnText | string | confirm | iOS/Android | |
|pickerTitleText | |string |pls select | |pickerCancelBtnText | string | cancel | iOS/Android | |
|pickerConfirmBtnColor | |array |[1, 186, 245, 1] | |pickerTitleText | string | pls select | iOS/Android | |
|pickerCancelBtnColor | |array |[1, 186, 245, 1] | |pickerConfirmBtnColor | array | [1, 186, 245, 1] | iOS/Android | |
|pickerTitleColor | |array |[20, 20, 20, 1] | |pickerCancelBtnColor | array | [1, 186, 245, 1] | iOS/Android | |
|pickerToolBarBg | |array |[232, 232, 232, 1] | |pickerTitleColor | array | [20, 20, 20, 1] | iOS/Android | |
|pickerBg | |array |[196, 199, 206, 1] | |pickerToolBarBg | array | [232, 232, 232, 1] | iOS/Android | |
|pickerToolBarFontSize | |number |16 | |pickerBg | array | [196, 199, 206, 1] | iOS/Android | |
|wheelFlex | |array |[1, 1, 1] | |pickerToolBarFontSize | number | 16 | iOS/Android | |
|pickerFontSize | |number |16 | |wheelFlex | array | [1, 1, 1] | iOS/Android | |
|pickerRowHeight | |number |24 | |pickerFontSize | number | 16 | iOS/Android | |
|pickerFontColor | |array |[31, 31, 31, 1] | |pickerFontColor | array | [31, 31, 31, 1] | iOS/Android | |
|pickerData | |array | | |pickerRowHeight | number | 24 | iOS | |
|selectedValue | |array | | |pickerData | array | | iOS/Android | |
|onPickerConfirm | |function| | |selectedValue | array | | iOS/Android | |
|onPickerCancel | |function| | |onPickerConfirm | function| | iOS/Android | |
|onPickerSelect | |function| | |onPickerCancel | function| | iOS/Android | |
|onPickerSelect | function| | iOS/Android | |
#### Methods #### Methods
|Name | Description | Type | Default| |Key | Support | Description |
| --- | ----------- | ---- | ------ | | --- | ---- | ----------- |
|init |init and pass parameters to picker | | | |init | iOS/Android |init and pass parameters to picker |
|toggle |show or hide picker | | | |toggle | iOS/Android |show or hide picker |
|show |show picker | | | |show | iOS/Android |show picker |
|hide |hide picker | | | |hide | iOS/Android |hide picker |
|select |select a row |array| | |select | iOS/Android |select a row |
|isPickerShow |get status of picker, return a boolean | | | |isPickerShow | iOS/Android |get status of picker, return a boolean |
### Usage ### Usage
......
{ {
"name": "react-native-picker", "name": "react-native-picker",
"version": "4.3.1", "version": "4.3.2",
"description": "A Native Picker with high performance.", "description": "A Native Picker with high performance.",
"main": "index.js", "main": "index.js",
"types": "index.d.ts", "types": "index.d.ts",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment