functions
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user