FIX: Buttons were blocked by keyboard in multisig edit

This commit is contained in:
Marcos Rodriguez Velez 2024-03-25 20:21:32 -04:00
parent 4cb8ba92eb
commit 992cda9b19
No known key found for this signature in database
GPG Key ID: 6030B2F48CCE86D7

View File

@ -532,11 +532,11 @@ const ViewEditMultisigCosigners = ({ route }: Props) => {
};
const renderProvideMnemonicsModal = () => {
// @ts-ignore weird, property exists on typedefinition. might be some ts bugs
// @ts-ignore weird, property exists on type definition. might be some ts bugs
const isPad: boolean = Platform.isPad;
return (
<BottomModal isVisible={isProvideMnemonicsModalVisible} onClose={hideProvideMnemonicsModal} coverScreen={false}>
<KeyboardAvoidingView enabled={!isPad} behavior={Platform.OS === 'ios' ? 'position' : undefined}>
<BottomModal avoidKeyboard isVisible={isProvideMnemonicsModalVisible} onClose={hideProvideMnemonicsModal} coverScreen={false}>
<KeyboardAvoidingView enabled={!isPad} behavior={Platform.OS === 'ios' ? 'position' : 'padding'} keyboardVerticalOffset={120}>
<View style={[styles.modalContent, stylesHook.modalContent]}>
<BlueTextCentered>{loc.multisig.type_your_mnemonics}</BlueTextCentered>
<BlueSpacing20 />