Skip to content

Commit b432092

Browse files
author
Daksh Bhardwaj
authored
TextInput: Add enterKeyHint prop (facebook#3299)
1 parent f57ac2d commit b432092

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/textinput.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,30 @@ If `true`, the keyboard disables the return key when there is no text and automa
321321

322322
---
323323

324+
### `enterKeyHint`
325+
326+
Determines what text should be shown to the return key. Has precedence over the `returnKeyType` prop.
327+
328+
The following values work across platforms:
329+
330+
- `enter`
331+
- `done`
332+
- `next`
333+
- `search`
334+
- `send`
335+
336+
_Android Only_
337+
338+
The following values work on Android only:
339+
340+
- `previous`
341+
342+
| Type |
343+
| ----------------------------------------------------------- |
344+
| enum('enter', 'done', 'next', 'previous', 'search', 'send') |
345+
346+
---
347+
324348
### `importantForAutofill` <div class="label android">Android</div>
325349

326350
Tells the operating system whether the individual fields in your app should be included in a view structure for autofill purposes on Android API Level 26+. Possible values are `auto`, `no`, `noExcludeDescendants`, `yes`, and `yesExcludeDescendants`. The default value is `auto`.

0 commit comments

Comments
 (0)