Skip to content

Commit 69f4b33

Browse files
chore: Map none inputMode to default keyboardType
1 parent 36e7e54 commit 69f4b33

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'
@@ -551,6 +552,7 @@ export type Props = $ReadOnly<{|
551552
*
552553
* Support the following values:
553554
*
555+
* - `none`
554556
* - `text`
555557
* - `decimal`
556558
* - `numeric`
@@ -1406,6 +1408,7 @@ function InternalTextInput(props: Props): React.Node {
14061408
}
14071409

14081410
const inputModeToKeyboardTypeMap = {
1411+
none: 'default',
14091412
text: 'default',
14101413
decimal: 'decimal-pad',
14111414
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)