Skip to content

Commit 6b0d8a9

Browse files
authored
Merge pull request #2196 from StoDevX/fix-section-separator
use an array to fix TableviewSimple's inspection of children
2 parents dfadf7e + de0bba0 commit 6b0d8a9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

source/views/settings/sections/login-credentials.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
import {type ReduxState} from '../../../flux'
1515
import {connect} from 'react-redux'
1616
import noop from 'lodash/noop'
17-
import {View} from 'react-native'
1817

1918
type ReduxStateProps = {
2019
initialUsername: string,
@@ -77,8 +76,9 @@ class CredentialsLoginSection extends React.PureComponent<Props, State> {
7776
{loggedIn ? (
7877
<Cell title={`Logged in as ${username}.`} />
7978
) : (
80-
<View>
79+
[
8180
<CellTextField
81+
key="username"
8282
_ref={this.getUsernameRef}
8383
disabled={loading}
8484
label="Username"
@@ -88,9 +88,10 @@ class CredentialsLoginSection extends React.PureComponent<Props, State> {
8888
returnKeyType="next"
8989
secureTextEntry={false}
9090
value={username}
91-
/>
91+
/>,
9292

9393
<CellTextField
94+
key="password"
9495
_ref={this.getPasswordRef}
9596
disabled={loading}
9697
label="Password"
@@ -100,8 +101,8 @@ class CredentialsLoginSection extends React.PureComponent<Props, State> {
100101
returnKeyType="done"
101102
secureTextEntry={true}
102103
value={password}
103-
/>
104-
</View>
104+
/>,
105+
]
105106
)}
106107

107108
<LoginButton

0 commit comments

Comments
 (0)