Unverified Commit fc08ceb3 authored by Hanwen Cheng's avatar Hanwen Cheng Committed by GitHub
Browse files

fix: extra height, focus, suggestions in text input (#505)

parent b1ea1f6d
Pipeline #72508 passed with stages
in 16 minutes and 12 seconds
......@@ -133,12 +133,13 @@ export default class AccountSeed extends Component {
return (
<View>
<TextInput
autoFocus
style={[fontStyles.t_seed, styles.input, invalidStyles]}
multiline
autoCorrect={false}
autoCompleteType="off"
autoCapitalize="none"
returnKeyType="done"
blurOnSubmit={true}
textAlignVertical="top"
onSelectionChange={this.handleCursorPosition}
{...this.props}
......
......@@ -58,6 +58,7 @@ const styles = StyleSheet.create({
},
text: {
letterSpacing: -0.4,
opacity: 0.4
opacity: 0.4,
textAlign: 'center'
}
});
......@@ -17,7 +17,7 @@
'use strict';
import React, { useEffect, useState } from 'react';
import { StyleSheet, View } from 'react-native';
import { Platform, StyleSheet, View } from 'react-native';
import { withNavigation } from 'react-navigation';
import Button from '../components/Button';
......@@ -145,7 +145,10 @@ function IdentityNew({ accounts, navigation }) {
);
return (
<KeyboardScrollView style={styles.body}>
<KeyboardScrollView
style={styles.body}
extraHeight={Platform.OS === 'ios' ? 210 : 120}
>
<ScreenHeading title={'New Identity'} />
<TextInput
onChangeText={updateName}
......
......@@ -163,7 +163,7 @@ function IdentityPin({ navigation, accounts }) {
return (
<KeyboardScrollView
style={styles.body}
extraHeight={120}
extraHeight={200}
testID={testIDs.IdentityPin.scrollScreen}
>
<Background />
......
......@@ -19,7 +19,7 @@
import React, { useState } from 'react';
import { withNavigation } from 'react-navigation';
import { withAccountStore } from '../util/HOC';
import { StyleSheet, Text, View } from 'react-native';
import { Platform, StyleSheet, Text, View } from 'react-native';
import TextInput from '../components/TextInput';
import ButtonMainAction from '../components/ButtonMainAction';
import { validateDerivedPath } from '../util/identitiesUtils';
......@@ -74,17 +74,20 @@ function PathDerivation({ accounts, navigation }) {
subtitle={existedNetworkPath}
subtitleIcon={true}
/>
<KeyboardScrollView>
<KeyboardScrollView extraHeight={Platform.OS === 'ios' ? 250 : 180}>
{!isPathValid && <Text>Invalid Path</Text>}
<TextInput
autoCorrect={false}
autoCompleteType="off"
label="Path"
placeholder="//hard/soft"
autoFocus
value={derivationPath}
testID={testIDs.PathDerivation.pathInput}
onChangeText={setDerivationPath}
/>
<TextInput
autoCorrect={false}
autoCompleteType="off"
label="Display Name"
testID={testIDs.PathDerivation.nameInput}
value={keyPairsName}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment