diff --git a/PROPS.md b/PROPS.md index 4e74cb3..3148b75 100644 --- a/PROPS.md +++ b/PROPS.md @@ -8,7 +8,7 @@ | `activeOpacity` | Opacity on pressed button | Number | `0.85` | | | `append` | Custom element before right button | Component | | | | `arrows` | Labels on button will be arrows (< and >) instead of plus and minus | Boolean | `false` | | -| `autofocus` | If `true`, focuses the input on `componentDidMount`. | | `false` | | +| `autoFocus` | If `true`, focuses the input on `componentDidMount`. | | `false` | | | `background` | Background color of number button | String | `transparent` | | | `buttonFontFamily` | Custom fontFamily of buttons of the Spinner | String | `System Default` | | | `buttonFontSize` | Custom fontSize of buttons of the Spinner | Number | `14` | | diff --git a/README.md b/README.md index 2d13c42..6a993c1 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ Check the "[Props List](PROPS.md)" file to have the complete list of component p | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ---------------- | ------- | --------------------------------- | | `accelerationDelay` | Delay time before start the `onLongPress` event and increase or decrease and continually | Number | `750 ` | | | `append` | Custom element before right button | Component | | | -| `autofocus` | If `true`, focuses the input on `componentDidMount`. | | `false` | | +| `autoFocus` | If `true`, focuses the input on `componentDidMount`. | | `false` | | | `continuity` | On min value is reached next decrease value will be the max value, if max is reached next increase value will be the min value | Boolean | `false` | | | `disabled` | Disable the Spinner or not | Boolean | `false` | | | `editable` | Set if input number field is editable or not | Boolean | `true` | | diff --git a/src/InputSpinner.js b/src/InputSpinner.js index 2d69b19..694c597 100644 --- a/src/InputSpinner.js +++ b/src/InputSpinner.js @@ -1321,7 +1321,7 @@ class InputSpinner extends Component { selectTextOnFocus={this.props.selectTextOnFocus} returnKeyType={this.props.returnKeyType} returnKeyLabel={this.props.returnKeyLabel} - autofocus={this.props.autofocus} + autoFocus={this.props.autoFocus} autoCapitalize={this._getAutoCapitalize()} // Bug fix for Samsung Keyboard editable={this.isEditable()} maxLength={this.props.maxLength} @@ -1375,7 +1375,7 @@ InputSpinner.propTypes = { maxLength: PropTypes.number, disabled: PropTypes.bool, editable: PropTypes.bool, - autofocus: PropTypes.bool, + autoFocus: PropTypes.bool, selectTextOnFocus: PropTypes.bool, placeholder: PropTypes.string, placeholderTextColor: PropTypes.string, @@ -1483,7 +1483,7 @@ InputSpinner.defaultProps = { maxLength: null, disabled: false, editable: true, - autofocus: false, + autoFocus: false, selectTextOnFocus: null, selectionColor: null, returnKeyLabel: null, diff --git a/src/index.d.ts b/src/index.d.ts index 73c2ba4..30ce9b8 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -33,7 +33,7 @@ export interface ReactNativeInputSpinnerProps { maxLength?: number; disabled?: boolean; editable?: boolean; - autofocus?: boolean; + autoFocus?: boolean; selectTextOnFocus?: boolean; placeholder?: string; placeholderTextColor?: string;