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
04946f59
Commit
04946f59
authored
Feb 24, 2016
by
xwenliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue#27
parent
743677cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
README.md
README.md
+1
-0
index.js
index.js
+4
-0
package.json
package.json
+1
-1
No files found.
README.md
View file @
04946f59
...
...
@@ -23,6 +23,7 @@ Needs react-native >= 0.14.2
####Props
-
<b>
style
</b>
style of picker, you can set width and height of picker in this prop
-
<b>
pickerElevation
</b>
elevation of picker (for issue https://github.com/beefe/react-native-picker/issues/27)
-
<b>
pickerBtnText
</b>
string, tool bar's confirm btn text
-
<b>
pickerCancelBtnText
</b>
string, tool bar's cancel ben text
-
<b>
pickerBtnStyle
</b>
textStylePropType, tool bar's btn style
...
...
index.js
View file @
04946f59
...
...
@@ -25,6 +25,7 @@ export default class PickerAny extends React.Component {
static
propTypes
=
{
style
:
PropTypes
.
any
,
pickerElevation
:
PropTypes
.
number
,
pickerBtnText
:
PropTypes
.
string
,
pickerCancelBtnText
:
PropTypes
.
string
,
pickerBtnStyle
:
PropTypes
.
any
,
...
...
@@ -76,6 +77,7 @@ export default class PickerAny extends React.Component {
//this.state.selectedValue may be the result of the first pickerWheel
let
{
style
,
pickerElevation
,
pickerBtnText
,
pickerCancelBtnText
,
pickerBtnStyle
,
...
...
@@ -124,6 +126,7 @@ export default class PickerAny extends React.Component {
this
.
pickerStyle
=
pickerStyle
;
return
{
style
,
pickerElevation
,
pickerBtnText
,
pickerCancelBtnText
,
pickerBtnStyle
,
...
...
@@ -442,6 +445,7 @@ export default class PickerAny extends React.Component {
return
(
<
Animated
.
View
style
=
{[
styles
.
picker
,
{
elevation
:
this
.
state
.
pickerElevation
,
width
:
longSide
,
height
:
this
.
state
.
showMask
?
height
:
this
.
state
.
style
.
height
,
bottom
:
this
.
state
.
slideAnim
...
...
package.json
View file @
04946f59
{
"name"
:
"react-native-picker"
,
"version"
:
"2.0.
3
"
,
"version"
:
"2.0.
4
"
,
"description"
:
"react-native-picker"
,
"main"
:
"index.js"
,
"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