mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 23:08:07 +01:00
FIX: Can't adjust multisig setting on 4" iPhone #4206
This commit is contained in:
parent
6ede98612e
commit
5654a4874a
2 changed files with 10 additions and 9 deletions
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import { StyleSheet, Platform, useWindowDimensions, View } from 'react-native';
|
||||
import Modal from 'react-native-modal';
|
||||
import { BlueButton, BlueSpacing40 } from '../BlueComponents';
|
||||
import { BlueButton, BlueSpacing10 } from '../BlueComponents';
|
||||
import loc from '../loc';
|
||||
import { useTheme } from '@react-navigation/native';
|
||||
|
||||
|
@ -54,7 +54,7 @@ const BottomModal = ({
|
|||
{doneButton && (
|
||||
<View style={[styles.hasDoneButton, stylesHook.hasDoneButton]}>
|
||||
<BlueButton title={loc.send.input_done} onPress={onClose} />
|
||||
<BlueSpacing40 />
|
||||
<BlueSpacing10 />
|
||||
</View>
|
||||
)}
|
||||
</Modal>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React, { useState, useRef, useEffect, useContext } from 'react';
|
||||
import { Keyboard, KeyboardAvoidingView, Platform, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
||||
import { Keyboard, ScrollView, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
||||
import LottieView from 'lottie-react-native';
|
||||
import { Icon } from 'react-native-elements';
|
||||
import { useNavigation, useRoute, useTheme } from '@react-navigation/native';
|
||||
|
@ -101,9 +101,9 @@ const WalletsAddMultisig = () => {
|
|||
|
||||
const renderModal = () => {
|
||||
return (
|
||||
<BottomModal isVisible={isModalVisible} onClose={closeModal} doneButton>
|
||||
<KeyboardAvoidingView enabled={!Platform.isPad} behavior={Platform.OS === 'ios' ? 'position' : null}>
|
||||
<View style={[styles.modalContentShort, stylesHook.modalContentShort]}>
|
||||
<BottomModal isVisible={isModalVisible} onClose={closeModal} doneButton propagateSwipe>
|
||||
<View style={[styles.modalContentShort, stylesHook.modalContentShort]}>
|
||||
<ScrollView>
|
||||
<Text style={[styles.textHeader, stylesHook.textHeader]}>{loc.multisig.quorum_header}</Text>
|
||||
<Text style={[styles.textSubtitle, stylesHook.textSubtitle]}>{loc.multisig.required_keys_out_of_total}</Text>
|
||||
<View style={styles.rowCenter}>
|
||||
|
@ -162,8 +162,8 @@ const WalletsAddMultisig = () => {
|
|||
checkmark={isP2sh()}
|
||||
containerStyle={[styles.borderRadius6, styles.item, isP2sh() ? stylesHook.selectedItem : stylesHook.deSelectedItem]}
|
||||
/>
|
||||
</View>
|
||||
</KeyboardAvoidingView>
|
||||
</ScrollView>
|
||||
</View>
|
||||
</BottomModal>
|
||||
);
|
||||
};
|
||||
|
@ -245,7 +245,8 @@ const styles = StyleSheet.create({
|
|||
flex: 0.8,
|
||||
},
|
||||
modalContentShort: {
|
||||
padding: 24,
|
||||
paddingHorizontal: 24,
|
||||
paddingTop: 24,
|
||||
justifyContent: 'center',
|
||||
borderTopLeftRadius: 16,
|
||||
borderTopRightRadius: 16,
|
||||
|
|
Loading…
Add table
Reference in a new issue