scroll bug fixed

This commit is contained in:
2025-07-10 23:34:57 +05:00
parent 3eb5442a14
commit 8f16f14796
2 changed files with 164 additions and 159 deletions

View File

@@ -167,6 +167,7 @@ const EditProfileModal = ({
card_number: initialData.card_number ? initialData.card_number.toString() : '',
});
setErrors({});
Keyboard.dismiss(); // Dismiss keyboard when modal closes
onClose();
};
@@ -256,7 +257,6 @@ const EditProfileModal = ({
behavior={Platform.OS === 'ios' ? 'padding' : undefined}
style={{ flex: 1 }}
>
<TouchableWithoutFeedback onPress={Keyboard.dismiss}>
<View style={styles.content}>
{/* Header */}
<View style={styles.header}>
@@ -268,7 +268,13 @@ const EditProfileModal = ({
</View>
{/* Form */}
<ScrollView style={styles.form} showsVerticalScrollIndicator={false} keyboardShouldPersistTaps="handled" contentContainerStyle={{paddingBottom:80}}>
<ScrollView
style={styles.form}
showsVerticalScrollIndicator={false}
keyboardShouldPersistTaps="handled"
contentContainerStyle={{paddingBottom:80}}
keyboardDismissMode="on-drag"
>
<View style={styles.formSection}>
<Text style={styles.sectionTitle}>Esasy maglumatlar</Text>
@@ -413,7 +419,6 @@ const EditProfileModal = ({
)}
</View>
</View>
</TouchableWithoutFeedback>
</KeyboardAvoidingView>
{renderPassportSeriesPicker()}

View File

@@ -7,8 +7,8 @@ import apiService from '../../services/apiService';
import { COLORS } from '../../constants/colors';
import { useBaseEnums } from '../../contexts/BaseEnumsContext';
const CARD_BG = '#EFF6FF';
const CIRCLE_BG = '#7FB3FF';
const CARD_BG = '#F1F9F1';
const CIRCLE_BG = '#A2E4A4';
const CardOrdersScreen = () => {
const navigation = useNavigation();