functions

This commit is contained in:
Thomas Demirdjian
2025-11-03 13:47:07 +01:00
parent 460c91f1e6
commit 7b3a47090d
16 changed files with 23868 additions and 2399 deletions
+8 -2
View File
@@ -67,6 +67,13 @@ const Input = ({
});
const ContainerView = isBlur ? BlurView : View;
const resolvedKeyboardType =
textInputProps?.keyboardType ??
(isNumeric
? "numeric"
: type === "email"
? "email-address"
: "default");
return (
<>
@@ -176,13 +183,12 @@ const Input = ({
: {})}
{...(type === "email"
? {
keyboardType: "email-address",
autoCapitalize: "none",
autoCompleteType: "email",
textContentType: "emailAddress",
}
: {})}
keyboardType={isNumeric ? "numeric" : "default"}
keyboardType={resolvedKeyboardType}
keyboardAppearance="dark"
inputAccessoryViewID={inputAccessoryViewID}
{...textInputProps}