mirror of
https://github.com/status-im/keycard-exit.git
synced 2025-01-09 10:31:57 +00:00
move buttons when opening keyboard
This commit is contained in:
parent
697eff562b
commit
3ce5608be3
@ -1,5 +1,5 @@
|
|||||||
import {FC, useState } from "react";
|
import {FC, useState } from "react";
|
||||||
import { Linking, StyleSheet, Text, TextInput, TouchableOpacity, View } from "react-native";
|
import { KeyboardAvoidingView, Linking, StyleSheet, Text, TextInput, TouchableOpacity, View } from "react-native";
|
||||||
import * as bip39 from '@scure/bip39';
|
import * as bip39 from '@scure/bip39';
|
||||||
import { wordlist } from '@scure/bip39/wordlists/english';
|
import { wordlist } from '@scure/bip39/wordlists/english';
|
||||||
import Button from "../Button";
|
import Button from "../Button";
|
||||||
@ -97,7 +97,7 @@ const MnemonicScreen: FC<MnemonicScreenProps> = props => {
|
|||||||
<TextInput autoCapitalize="none" autoComplete="off" autoCorrect={false} secureTextEntry={!showMnemonic} multiline={showMnemonic} editable onChangeText={updateMnemonic} value={mnemonic} style={styles.mnemonic}/>
|
<TextInput autoCapitalize="none" autoComplete="off" autoCorrect={false} secureTextEntry={!showMnemonic} multiline={showMnemonic} editable onChangeText={updateMnemonic} value={mnemonic} style={styles.mnemonic}/>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
<View style={Styles.footer}>
|
<KeyboardAvoidingView keyboardVerticalOffset={20} behavior="padding" style={Styles.footer}>
|
||||||
<View style={[Styles.sublinkContainer, {paddingBottom: 25}]}>
|
<View style={[Styles.sublinkContainer, {paddingBottom: 25}]}>
|
||||||
<Text style={Styles.sublinkText}>By proceeding, you agree to these </Text>
|
<Text style={Styles.sublinkText}>By proceeding, you agree to these </Text>
|
||||||
<TouchableOpacity onPress={() => Linking.openURL('https://logos.co')}>
|
<TouchableOpacity onPress={() => Linking.openURL('https://logos.co')}>
|
||||||
@ -108,7 +108,7 @@ const MnemonicScreen: FC<MnemonicScreenProps> = props => {
|
|||||||
<Button type="cancel" disabled={false} onChangeFunc={goBack}></Button>
|
<Button type="cancel" disabled={false} onChangeFunc={goBack}></Button>
|
||||||
<Button label="Import" disabled={!isValid} onChangeFunc={submitMnemonic}></Button>
|
<Button label="Import" disabled={!isValid} onChangeFunc={submitMnemonic}></Button>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</KeyboardAvoidingView>
|
||||||
</View>
|
</View>
|
||||||
}
|
}
|
||||||
{ step == LoadMnemonicSteps.CreateMnemonic &&
|
{ step == LoadMnemonicSteps.CreateMnemonic &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user