Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ export type ReturnKeyTypeOptions =
| ReturnKeyTypeAndroid
| ReturnKeyTypeIOS;

export type EnterKeyHintTypeAndroid = 'previous';
export type EnterKeyHintTypeIOS = 'enter';
export type EnterKeyHintType = 'done' | 'go' | 'next' | 'search' | 'send';

export type EnterKeyHintTypeOptions =
| EnterKeyHintType
| EnterKeyHintTypeAndroid
| EnterKeyHintTypeIOS;

type DataDetectorTypes =
| 'phoneNumber'
| 'link'
Expand Down Expand Up @@ -779,6 +788,12 @@ export interface TextInputProps
*/
returnKeyType?: ReturnKeyTypeOptions | undefined;

/**
* Determines what text should be shown to the return key on virtual keyboards.
* Has precedence over the returnKeyType prop.
*/
enterKeyHint?: EnterKeyHintTypeOptions | undefined;

/**
* If true, the text input obscures the text entered so that sensitive text like passwords stay secure.
* The default value is false.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,16 @@ export type TextContentType =
| 'oneTimeCode';

export type enterKeyHintType =
| 'enter'
// Cross Platform
| 'done'
| 'go'
| 'next'
| 'previous'
| 'search'
| 'send';
| 'send'
// Android-only
| 'previous'
// iOS-only
| 'enter';

type PasswordRules = string;

Expand Down