REF: Blind fix for import button on android

🤞
This commit is contained in:
ncoelho 2020-04-24 11:20:49 +02:00 committed by Overtorment
parent 2ec23d9147
commit de642f60be
3 changed files with 65 additions and 67 deletions

View File

@ -81,7 +81,7 @@ module.exports = {
error: 'Failed to import. Please, make sure that the provided data is valid.',
success: 'Success',
do_import: 'Import',
scan_qr: '...scan QR or import file instead?',
scan_qr: 'Scan or import a file',
},
scanQrWif: {
go_back: 'Go Back',

View File

@ -93,8 +93,8 @@ export default class WalletsAdd extends Component {
return (
<SafeBlueArea>
<KeyboardAvoidingView enabled behavior={Platform.OS === 'ios' ? 'padding' : null} keyboardVerticalOffset={62}>
<ScrollView>
<KeyboardAvoidingView enabled behavior={Platform.OS === 'ios' ? 'padding' : null} keyboardVerticalOffset={62}>
<BlueFormLabel>{loc.wallets.add.wallet_name}</BlueFormLabel>
<View
style={{
@ -336,8 +336,8 @@ export default class WalletsAdd extends Component {
}}
/>
</View>
</ScrollView>
</KeyboardAvoidingView>
</ScrollView>
</SafeBlueArea>
);
}

View File

@ -1,6 +1,6 @@
/* global alert */
import React, { useEffect, useState } from 'react';
import { KeyboardAvoidingView, Platform, Dimensions, View, TouchableWithoutFeedback, Keyboard } from 'react-native';
import { ScrollView, KeyboardAvoidingView, Platform, Dimensions, View, TouchableWithoutFeedback, Keyboard } from 'react-native';
import {
BlueFormMultiInput,
BlueButtonLink,
@ -62,6 +62,7 @@ const WalletsImport = () => {
return (
<SafeBlueArea forceInset={{ horizontal: 'always' }} style={{ flex: 1, paddingTop: 40 }}>
<ScrollView>
<TouchableWithoutFeedback onPress={Keyboard.dismiss} accessible={false}>
<KeyboardAvoidingView behavior="position" enabled>
<BlueFormLabel>{loc.wallets.import.explanation}</BlueFormLabel>
@ -102,13 +103,8 @@ const WalletsImport = () => {
})}
</KeyboardAvoidingView>
</TouchableWithoutFeedback>
<BlueSpacing20 />
<View
style={{
alignItems: 'center',
}}
>
<View style={{ flex: 1, alignItems: 'center' }}>
<BlueButton
disabled={importText.trim().length === 0}
title={loc.wallets.import.do_import}
@ -117,6 +113,7 @@ const WalletsImport = () => {
}}
onPress={importButtonPressed}
/>
<BlueSpacing20 />
<BlueButtonLink
title={loc.wallets.import.scan_qr}
onPress={() => {
@ -124,6 +121,7 @@ const WalletsImport = () => {
}}
/>
</View>
</ScrollView>
</SafeBlueArea>
);
};