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 30, 2022
1 parent 484fe22 commit 20fe307
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 @@ -582,6 +583,7 @@ export type Props = $ReadOnly<{|
*
* Support the following values:
*
* - `none`
* - `text`
* - `decimal`
* - `numeric`
Expand Down Expand Up @@ -1448,6 +1450,7 @@ const enterKeyHintToReturnTypeMap = {
};

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 20fe307

Please sign in to comment.