Skip to content

Commit

Permalink
chore: Map none inputMode to default keyboardType
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel committed Aug 22, 2022
1 parent 384895e commit 11fb0b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Libraries/Components/TextInput/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ export type KeyboardType =
| 'visible-password';

export type InputMode =
| 'none'
| 'text'
| 'decimal'
| 'numeric'
Expand Down Expand Up @@ -551,6 +552,7 @@ export type Props = $ReadOnly<{|
*
* Support the following values:
*
* - `none`
* - `text`
* - `decimal`
* - `numeric`
Expand Down Expand Up @@ -1399,6 +1401,7 @@ function InternalTextInput(props: Props): React.Node {
}

const inputModeToKeyboardTypeMap = {
none: 'default',
text: 'default',
decimal: 'decimal-pad',
numeric: 'number-pad',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ module.exports = ([
name: 'inputModes',
render: function (): React.Node {
const inputMode = [
'none',
'text',
'decimal',
'numeric',
Expand Down

0 comments on commit 11fb0b7

Please sign in to comment.