File tree 1 file changed +15
-0
lines changed
packages/react-native/Libraries/Components/TextInput
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,15 @@ export type ReturnKeyTypeOptions =
70
70
| ReturnKeyTypeAndroid
71
71
| ReturnKeyTypeIOS ;
72
72
73
+ export type EnterKeyHintType =
74
+ | 'enter'
75
+ | 'done'
76
+ | 'go'
77
+ | 'next'
78
+ | 'previous'
79
+ | 'search'
80
+ | 'send' ;
81
+
73
82
type DataDetectorTypes =
74
83
| 'phoneNumber'
75
84
| 'link'
@@ -779,6 +788,12 @@ export interface TextInputProps
779
788
*/
780
789
returnKeyType ?: ReturnKeyTypeOptions | undefined ;
781
790
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
+
782
797
/**
783
798
* If true, the text input obscures the text entered so that sensitive text like passwords stay secure.
784
799
* The default value is false.
You can’t perform that action at this time.
0 commit comments