From c3bee3df6c40c283d5aa45bde6b5de9eeb027c30 Mon Sep 17 00:00:00 2001 From: Rohit Verma Date: Sat, 11 Jan 2025 19:37:09 +0530 Subject: [PATCH] refactor: remove getSecureTextEntry method Removed the Android native getSecureTextEntry method as it no longer needed --- src/libs/getSecureEntryKeyboardType/index.android.ts | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/libs/getSecureEntryKeyboardType/index.android.ts diff --git a/src/libs/getSecureEntryKeyboardType/index.android.ts b/src/libs/getSecureEntryKeyboardType/index.android.ts deleted file mode 100644 index 6cded09f1d49..000000000000 --- a/src/libs/getSecureEntryKeyboardType/index.android.ts +++ /dev/null @@ -1,11 +0,0 @@ -import CONST from '@src/CONST'; -import type GetSecureEntryKeyboardType from './types'; - -/** - * Return visible-password keyboard type when secure text is visible on Android, - * otherwise return keyboardType passed as function parameter - */ -const getSecureEntryKeyboardType: GetSecureEntryKeyboardType = (keyboardType, secureTextEntry, passwordHidden) => - secureTextEntry && !passwordHidden ? CONST.KEYBOARD_TYPE.VISIBLE_PASSWORD : keyboardType; - -export default getSecureEntryKeyboardType;