Skip to content

Commit de7e0f1

Browse files
committed
add missing enterKeyHint in TextInput type declaration
1 parent 7f22db8 commit de7e0f1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

packages/react-native/Libraries/Components/TextInput/TextInput.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ export type ReturnKeyTypeOptions =
7070
| ReturnKeyTypeAndroid
7171
| ReturnKeyTypeIOS;
7272

73+
export type EnterKeyHintType =
74+
| 'enter'
75+
| 'done'
76+
| 'go'
77+
| 'next'
78+
| 'previous'
79+
| 'search'
80+
| 'send';
81+
7382
type DataDetectorTypes =
7483
| 'phoneNumber'
7584
| 'link'
@@ -779,6 +788,12 @@ export interface TextInputProps
779788
*/
780789
returnKeyType?: ReturnKeyTypeOptions | undefined;
781790

791+
/**
792+
* Determines what text should be shown to the return key on virtual keyboards.
793+
* Has precedence over the returnKeyType prop.
794+
*/
795+
enterKeyHint?: EnterKeyHintType | undefined;
796+
782797
/**
783798
* If true, the text input obscures the text entered so that sensitive text like passwords stay secure.
784799
* The default value is false.

0 commit comments

Comments
 (0)