Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
react-native-picker
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ym
react-native-picker
Commits
c9dd0f7d
Commit
c9dd0f7d
authored
Dec 13, 2017
by
xwenliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Readme
parent
5270cd03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
29 deletions
+30
-29
README.md
README.md
+29
-28
package.json
package.json
+1
-1
No files found.
README.md
View file @
c9dd0f7d
...
...
@@ -9,37 +9,38 @@
#### Params
|Key | Description | Type | Default|
| --- | ----------- | ---- | ------ |
|pickerConfirmBtnText | |string |confirm |
|pickerCancelBtnText | |string |cancel |
|pickerTitleText | |string |pls select |
|pickerConfirmBtnColor | |array |[1, 186, 245, 1] |
|pickerCancelBtnColor | |array |[1, 186, 245, 1] |
|pickerTitleColor | |array |[20, 20, 20, 1] |
|pickerToolBarBg | |array |[232, 232, 232, 1] |
|pickerBg | |array |[196, 199, 206, 1] |
|pickerToolBarFontSize | |number |16 |
|wheelFlex | |array |[1, 1, 1] |
|pickerFontSize | |number |16 |
|pickerRowHeight | |number |24 |
|pickerFontColor | |array |[31, 31, 31, 1] |
|pickerData | |array | |
|selectedValue | |array | |
|onPickerConfirm | |function| |
|onPickerCancel | |function| |
|onPickerSelect | |function| |
|Key | Type | Default| Support | Description |
| --- | --- | ---- | ------ | ----------- |
|isLoop | Boolean | false | Android | |
|pickerConfirmBtnText | string | confirm | iOS/Android | |
|pickerCancelBtnText | string | cancel | iOS/Android | |
|pickerTitleText | string | pls select | iOS/Android | |
|pickerConfirmBtnColor | array | [1, 186, 245, 1] | iOS/Android | |
|pickerCancelBtnColor | array | [1, 186, 245, 1] | iOS/Android | |
|pickerTitleColor | array | [20, 20, 20, 1] | iOS/Android | |
|pickerToolBarBg | array | [232, 232, 232, 1] | iOS/Android | |
|pickerBg | array | [196, 199, 206, 1] | iOS/Android | |
|pickerToolBarFontSize | number | 16 | iOS/Android | |
|wheelFlex | array | [1, 1, 1] | iOS/Android | |
|pickerFontSize | number | 16 | iOS/Android | |
|pickerFontColor | array | [31, 31, 31, 1] | iOS/Android | |
|pickerRowHeight | number | 24 | iOS | |
|pickerData | array | | iOS/Android | |
|selectedValue | array | | iOS/Android | |
|onPickerConfirm | function| | iOS/Android | |
|onPickerCancel | function| | iOS/Android | |
|onPickerSelect | function| | iOS/Android | |
#### Methods
|
Name | Description | Type | Default
|
| --- | ----
------- | ---- |
------ |
|init |
init and pass parameters to picker | |
|
|toggle |
show or hide picker | |
|
|show |
show picker | |
|
|hide |
hide picker | |
|
|select |
select a row |array|
|
|isPickerShow |
get status of picker, return a boolean | |
|
|
Key | Support | Description
|
| --- | ----
| -----
------ |
|init |
iOS/Android |init and pass parameters to picker
|
|toggle |
iOS/Android |show or hide picker
|
|show |
iOS/Android |show picker
|
|hide |
iOS/Android |hide picker
|
|select |
iOS/Android |select a row
|
|isPickerShow |
iOS/Android |get status of picker, return a boolean
|
### Usage
...
...
package.json
View file @
c9dd0f7d
{
"name"
:
"react-native-picker"
,
"version"
:
"4.3.
1
"
,
"version"
:
"4.3.
2
"
,
"description"
:
"A Native Picker with high performance."
,
"main"
:
"index.js"
,
"types"
:
"index.d.ts"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment