Skip to content

Commit

Permalink
feat: add return key type and label
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Cesarato committed Aug 7, 2020
1 parent f9e4c81 commit 351612e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,8 @@ class InputSpinner extends Component {
value={this.getValue()}
selectionColor={this.props.selectionColor}
selectTextOnFocus={this.props.selectTextOnFocus}
returnKeyType={this.props.returnKeyType}
returnKeyLabel={this.props.returnKeyLabel}
autofocus={this.props.autofocus}
editable={this.isEditable()}
maxLength={this.props.maxLength}
Expand Down Expand Up @@ -791,6 +793,8 @@ InputSpinner.propTypes = {
autofocus: PropTypes.bool,
selectTextOnFocus: PropTypes.bool,
selectionColor: PropTypes.string,
returnKeyLabel: PropTypes.string,
returnKeyType: PropTypes.string,
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
onChange: PropTypes.func,
Expand Down Expand Up @@ -848,6 +852,8 @@ InputSpinner.defaultProps = {
autofocus: false,
selectTextOnFocus: null,
selectionColor: null,
returnKeyLabel: null,
returnKeyType: null,
width: 150,
height: 50,
buttonLeftDisabled: false,
Expand Down

0 comments on commit 351612e

Please sign in to comment.