fix - input & profile flatlist

This commit is contained in:
Victor
2025-09-17 16:24:06 +02:00
parent 3acfea7551
commit f40d5c8051
2 changed files with 129 additions and 138 deletions
+47 -47
View File
@@ -166,57 +166,57 @@ const Input = ({
}}
/>
) : */}
(
<TextInput
ref={inputRef}
placeholder={placeholder}
placeholderTextColor={Palette.gray}
value={value}
onChangeText={setValue}
multiline={type === 'textarea'}
editable={type !== 'countryPicker'}
onFocus={() => setIsFocused(true)}
onBlur={() => setIsFocused(false)}
style={{
width: '100%',
...(isRoundedRectangle
{type !== 'countryPicker' && (
<TextInput
ref={inputRef}
placeholder={placeholder}
placeholderTextColor={Palette.gray}
value={value}
onChangeText={setValue}
multiline={type === 'textarea'}
editable={type !== 'countryPicker'}
onFocus={() => setIsFocused(true)}
onBlur={() => setIsFocused(false)}
style={{
width: '100%',
...(isRoundedRectangle
? {
height: '100%',
flex: 1,
textAlignVertical: type === 'textarea' ? 'top' : 'center',
}
: { textAlign: 'center' }),
fontSize: 14,
color: Palette.white,
fontFamily: FONT_FAMILY.InterRegular,
...(isWeb
? {
lineHeight: 'auto',
}
: {}),
...textInputStyle,
}}
{...(type === 'password'
? {
height: '100%',
flex: 1,
textAlignVertical: type === 'textarea' ? 'top' : 'center',
secureTextEntry: !showPassword,
autoCapitalize: 'none',
autoCompleteType: 'password',
textContentType: 'password',
}
: { textAlign: 'center' }),
fontSize: 14,
color: Palette.white,
fontFamily: FONT_FAMILY.InterRegular,
...(isWeb
: {})}
{...(type === 'email'
? {
lineHeight: 'auto',
keyboardType: 'email-address',
autoCapitalize: 'none',
autoCompleteType: 'email',
textContentType: 'emailAddress',
}
: {}),
...textInputStyle,
}}
{...(type === 'password'
? {
secureTextEntry: !showPassword,
autoCapitalize: 'none',
autoCompleteType: 'password',
textContentType: 'password',
}
: {})}
{...(type === 'email'
? {
keyboardType: 'email-address',
autoCapitalize: 'none',
autoCompleteType: 'email',
textContentType: 'emailAddress',
}
: {})}
keyboardType={isNumeric ? 'numeric' : 'default'}
keyboardAppearance='dark'
inputAccessoryViewID={inputAccessoryViewID}
{...textInputProps}
/>
: {})}
keyboardType={isNumeric ? 'numeric' : 'default'}
keyboardAppearance='dark'
inputAccessoryViewID={inputAccessoryViewID}
{...textInputProps}
/>
)}
{type === 'password' ? (
<Pressable onPress={() => setShowPassword(!showPassword)}>