diff --git a/README.md b/README.md index 05e0c88ae..c28386a19 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ Needs react-native >= 0.14.2 ####Props - style style of picker, you can set width and height of picker in this prop +- pickerElevation elevation of picker (for issue https://github.com/beefe/react-native-picker/issues/27) - pickerBtnText string, tool bar's confirm btn text - pickerCancelBtnText string, tool bar's cancel ben text - pickerBtnStyle textStylePropType, tool bar's btn style diff --git a/index.js b/index.js index 6f7d68506..06c5b7785 100644 --- a/index.js +++ b/index.js @@ -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 (