Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
parity-signer
Commits
fc08ceb3
Unverified
Commit
fc08ceb3
authored
Dec 21, 2019
by
Hanwen Cheng
Committed by
GitHub
Dec 21, 2019
Browse files
fix: extra height, focus, suggestions in text input (#505)
parent
b1ea1f6d
Pipeline
#72508
passed with stages
in 16 minutes and 12 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/components/AccountSeed.js
View file @
fc08ceb3
...
...
@@ -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
}
...
...
src/components/ButtonNewDerivation.js
View file @
fc08ceb3
...
...
@@ -58,6 +58,7 @@ const styles = StyleSheet.create({
},
text
:
{
letterSpacing
:
-
0.4
,
opacity
:
0.4
opacity
:
0.4
,
textAlign
:
'
center
'
}
});
src/screens/IdentityNew.js
View file @
fc08ceb3
...
...
@@ -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
}
...
...
src/screens/IdentityPin.js
View file @
fc08ceb3
...
...
@@ -163,7 +163,7 @@ function IdentityPin({ navigation, accounts }) {
return
(
<
KeyboardScrollView
style
=
{
styles
.
body
}
extraHeight
=
{
1
20
}
extraHeight
=
{
2
0
0
}
testID
=
{
testIDs
.
IdentityPin
.
scrollScreen
}
>
<
Background
/>
...
...
src/screens/PathDerivation.js
View file @
fc08ceb3
...
...
@@ -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
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment