From 1810a4c0ae0df9f1078c5adc5a506714f2c17350 Mon Sep 17 00:00:00 2001 From: Rohit Verma Date: Sat, 11 Jan 2025 19:16:17 +0530 Subject: [PATCH] fix: remove dynamic keyboardType logic causing keyboard flickering Replaced `getSecureEntryKeyboardType` with direct use of `inputProps.keyboardType` to resolve conflicts between `secureTextEntry` and `keyboardType="visible-password"` --- src/components/TextInput/BaseTextInput/index.native.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TextInput/BaseTextInput/index.native.tsx b/src/components/TextInput/BaseTextInput/index.native.tsx index 7cc451809ee5..26473e3983bf 100644 --- a/src/components/TextInput/BaseTextInput/index.native.tsx +++ b/src/components/TextInput/BaseTextInput/index.native.tsx @@ -376,7 +376,7 @@ function BaseTextInput( secureTextEntry={passwordHidden} onPressOut={inputProps.onPress} showSoftInputOnFocus={!disableKeyboard} - keyboardType={getSecureEntryKeyboardType(inputProps.keyboardType, inputProps.secureTextEntry ?? false, passwordHidden ?? false)} + keyboardType={inputProps.keyboardType} inputMode={!disableKeyboard ? inputProps.inputMode : CONST.INPUT_MODE.NONE} value={value} selection={inputProps.selection}