Skip to content

Commit

Permalink
issue#27
Browse files Browse the repository at this point in the history
  • Loading branch information
xwenliang committed Feb 24, 2016
1 parent 743677c commit 04946f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -124,6 +126,7 @@ export default class PickerAny extends React.Component {
this.pickerStyle = pickerStyle;
return {
style,
pickerElevation,
pickerBtnText,
pickerCancelBtnText,
pickerBtnStyle,
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-picker",
"version": "2.0.3",
"version": "2.0.4",
"description": "react-native-picker",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 04946f5

Please sign in to comment.