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
5ef573a8
Commit
5ef573a8
authored
Feb 21, 2016
by
xwenliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme
parent
e2b20005
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
README.md
README.md
+6
-4
package.json
package.json
+1
-1
No files found.
README.md
View file @
5ef573a8
...
@@ -22,14 +22,13 @@ Needs react-native >= 0.14.2
...
@@ -22,14 +22,13 @@ Needs react-native >= 0.14.2
###Documentation
###Documentation
####Props
####Props
-
<b>
style
</b>
style of picker
-
<b>
style
</b>
style of picker
, you can set width and height of picker in this prop
-
<b>
pickerBtnText
</b>
string, tool bar's confirm btn text
-
<b>
pickerBtnText
</b>
string, tool bar's confirm btn text
-
<b>
pickerCancelBtnText
</b>
string, tool bar's cancel ben text
-
<b>
pickerCancelBtnText
</b>
string, tool bar's cancel ben text
-
<b>
pickerBtnStyle
</b>
textStylePropType, tool bar's btn style
-
<b>
pickerBtnStyle
</b>
textStylePropType, tool bar's btn style
-
<b>
pickerToolBarStyle
</b>
viewStylePropType, tool bar's style
-
<b>
pickerToolBarStyle
</b>
viewStylePropType, tool bar's style
-
<b>
pickerWidth
</b>
number, width of picker
-
<b>
pickerHeight
</b>
number, height of picker
-
<b>
showDuration
</b>
number, animation of picker
-
<b>
showDuration
</b>
number, animation of picker
-
<b>
showMask
</b>
boolean, default to be false, cancel the picker by tapping in the rest of the screen support when setted to be true
-
<b>
pickerTitle
</b>
string, title of picker
-
<b>
pickerTitle
</b>
string, title of picker
-
<b>
pickerTitleStyle
</b>
textStylePropType, style of title
-
<b>
pickerTitleStyle
</b>
textStylePropType, style of title
-
<b>
pickerData
</b>
array
-
<b>
pickerData
</b>
array
...
@@ -58,8 +57,11 @@ Needs react-native >= 0.14.2
...
@@ -58,8 +57,11 @@ Needs react-native >= 0.14.2
import
Picker
from
'
react-native-picker
'
import
Picker
from
'
react-native-picker
'
<
Picker
<
Picker
pickerHeight
=
{
300
}
style
=
{{
height
:
300
}},
showDuration
=
{
300
}
showDuration
=
{
300
}
showMask
=
{
true
}
pickerData
=
{}
//picker`s value List
pickerData
=
{}
//picker`s value List
selectedValue
=
{}
//default to be selected value
selectedValue
=
{}
//default to be selected value
onPickerDone
=
{}
//when confirm your choice
onPickerDone
=
{}
//when confirm your choice
...
...
package.json
View file @
5ef573a8
{
{
"name"
:
"react-native-picker"
,
"name"
:
"react-native-picker"
,
"version"
:
"2.0.
0
"
,
"version"
:
"2.0.
1
"
,
"description"
:
"react-native-picker"
,
"description"
:
"react-native-picker"
,
"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