This commit is contained in:
shafi54 2026-02-18 02:29:01 +05:30
parent da47a0a014
commit a1aee3262b
2 changed files with 5 additions and 6 deletions

View file

@ -1,4 +1,3 @@
ENV_MODE=PROD
DATABASE_URL=postgresql://postgres:meatfarmer_master_password@57.128.212.174:7447/meatfarmer #technocracy
# DATABASE_URL=postgres://postgres:meatfarmer_master_password@5.223.55.14:7447/meatfarmer #hetzner

View file

@ -6,7 +6,7 @@ import * as Yup from 'yup';
import { tw, MyText, MyTouchableOpacity , Checkbox , MyTextInput , LoadingDialog } from 'common-ui';
import { trpc } from '../trpc-client';
import LocationAttacher from './LocationAttacher';
import KeyBoardAwareScrollView from 'react-native-keyboard-aware-scroll-view';
import {KeyboardAwareScrollView} from 'react-native-keyboard-aware-scroll-view';
interface AddressFormProps {
onSuccess: (addressId?: number) => void;
@ -74,8 +74,8 @@ const AddressForm: React.FC<AddressFormProps> = ({ onSuccess, initialValues, isE
});
return (
<ScrollView
style={[tw`px-4 pt-4 pb-32 bg-white`, {height: Dimensions.get('window').height * 0.5}]}
<KeyboardAwareScrollView
style={[tw`px-4 pt-4 pb-32 bg-white`, {maxHeight: Dimensions.get('window').height * 0.7}]}
keyboardShouldPersistTaps="always"
keyboardDismissMode="on-drag"
>
@ -262,7 +262,7 @@ const AddressForm: React.FC<AddressFormProps> = ({ onSuccess, initialValues, isE
open={isSubmitting}
message={isEdit ? "Updating address..." : "Adding address..."}
/>
</ScrollView>
</KeyboardAwareScrollView>
);
};