Skip to content

Commit 31578f0

Browse files
committed
use an array to fix TableviewSimple's inspection of children
1 parent 4b3adb7 commit 31578f0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ class CredentialsLoginSection extends React.PureComponent<Props, State> {
7777
{loggedIn ? (
7878
<Cell title={`Logged in as ${username}.`} />
7979
) : (
80-
<View>
80+
[
8181
<CellTextField
82+
key="username"
8283
_ref={this.getUsernameRef}
8384
disabled={loading}
8485
label="Username"
@@ -88,9 +89,10 @@ class CredentialsLoginSection extends React.PureComponent<Props, State> {
8889
returnKeyType="next"
8990
secureTextEntry={false}
9091
value={username}
91-
/>
92+
/>,
9293

9394
<CellTextField
95+
key="password"
9496
_ref={this.getPasswordRef}
9597
disabled={loading}
9698
label="Password"
@@ -100,8 +102,8 @@ class CredentialsLoginSection extends React.PureComponent<Props, State> {
100102
returnKeyType="done"
101103
secureTextEntry={true}
102104
value={password}
103-
/>
104-
</View>
105+
/>,
106+
]
105107
)}
106108

107109
<LoginButton

0 commit comments

Comments
 (0)