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
8fc02462
Commit
8fc02462
authored
Sep 22, 2016
by
xwenliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v4.0.2
parent
92a23c07
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
19 deletions
+26
-19
README.md
README.md
+25
-18
package.json
package.json
+1
-1
No files found.
README.md
View file @
8fc02462
...
@@ -8,26 +8,33 @@
...
@@ -8,26 +8,33 @@
###Documentation
###Documentation
####Props
####Params
-
<b>
pickerConfirmBtnText
</b>
(string), 确认按钮文字
-
<b>
pickerCancelBtnText
</b>
(string), 取消按钮文字
|Key | Description | Type | Default|
-
<b>
pickerTitleText
</b>
(string), 标题文字
| -- | ----------- | ---- | ------ |
-
<b>
pickerConfirmBtnColor
</b>
([1, 186, 245, 1]), 确认按钮字体颜色
|pickerConfirmBtnText | |string |确认 |
-
<b>
pickerCancelBtnColor
</b>
([1, 186, 245, 1]), 取消按钮字体颜色
|pickerCancelBtnText | |string |取消 |
-
<b>
pickerTitleColor
</b>
([20, 20, 20, 1]), 标题字体颜色
|pickerTitleText | |string |请选择 |
-
<b>
pickerToolBarBg
</b>
([232, 232, 232, 1]), 工具栏背景颜色
|pickerConfirmBtnColor | |array |[1, 186, 245, 1] |
-
<b>
pickerBg
</b>
([196, 199, 206, 1]), picker背景颜色
|pickerCancelBtnColor | |array |[1, 186, 245, 1] |
-
<b>
pickerData
</b>
(array), picker数据
|pickerTitleColor | |array |[20, 20, 20, 1]) |
-
<b>
selectedValue
</b>
(string),默认选中数据
|pickerToolBarBg | |array |[232, 232, 232, 1] |
-
<b>
onPickerConfirm
</b>
(function),确认按钮回调
|pickerBg | |array |[196, 199, 206, 1] |
-
<b>
onPickerCancel
</b>
(function),取消按钮回调
|pickerData | |array | |
-
<b>
onPickerSelect
</b>
(function),滚轮滚动时回调
|selectedValue | |string | |
|onPickerConfirm | |function| |
|onPickerCancel | |function| |
|onPickerSelect | |function| |
####Methods
####Methods
-
<b>
toggle
</b>
show or hide picker, default to be hiden
-
<b>
show
</b>
show picker
|Name | Description | Type | Default|
-
<b>
hide
</b>
hide picker
| --- | ----------- | ---- | ------ |
-
<b>
isPickerShow
</b>
get status of picker, return a boolean
|toggle |show or hide picker | | |
|show |show picker | | |
|hide |hide picker | | |
|isPickerShow |get status of picker, return a boolean | | |
###Usage
###Usage
...
...
package.json
View file @
8fc02462
{
{
"name"
:
"react-native-picker"
,
"name"
:
"react-native-picker"
,
"version"
:
"4.0.
1
"
,
"version"
:
"4.0.
2
"
,
"description"
:
""
,
"description"
:
""
,
"main"
:
"index.js"
,
"main"
:
"index.js"
,
"scripts"
:
{
"scripts"
:
{
...
...
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