Skip to content

Commit 20fe307

Browse files
chore: Map none inputMode to default keyboardType
1 parent 484fe22 commit 20fe307

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Libraries/Components/TextInput/TextInput.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ export type KeyboardType =
156156
| 'visible-password';
157157

158158
export type InputMode =
159+
| 'none'
159160
| 'text'
160161
| 'decimal'
161162
| 'numeric'
@@ -582,6 +583,7 @@ export type Props = $ReadOnly<{|
582583
*
583584
* Support the following values:
584585
*
586+
* - `none`
585587
* - `text`
586588
* - `decimal`
587589
* - `numeric`
@@ -1448,6 +1450,7 @@ const enterKeyHintToReturnTypeMap = {
14481450
};
14491451

14501452
const inputModeToKeyboardTypeMap = {
1453+
none: 'default',
14511454
text: 'default',
14521455
decimal: 'decimal-pad',
14531456
numeric: 'number-pad',

packages/rn-tester/js/examples/TextInput/TextInputSharedExamples.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@ module.exports = ([
726726
name: 'inputModes',
727727
render: function (): React.Node {
728728
const inputMode = [
729+
'none',
729730
'text',
730731
'decimal',
731732
'numeric',

0 commit comments

Comments
 (0)