Skip to content

Commit

Permalink
fix: remove dynamic keyboardType logic causing keyboard flickering
Browse files Browse the repository at this point in the history
Replaced `getSecureEntryKeyboardType` with direct use of `inputProps.keyboardType` to resolve conflicts between `secureTextEntry` and `keyboardType="visible-password"`
  • Loading branch information
rohit9625 committed Jan 11, 2025
1 parent 6ce82c8 commit 1810a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TextInput/BaseTextInput/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 1810a4c

Please sign in to comment.