File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ export const ComponentStyles = StyleSheet.create({
426
426
input_control :{
427
427
paddingVertical : StyleConfig . space_3 ,
428
428
borderBottomWidth :.5 ,
429
- borderBottomColor : StyleConfig . color_dark
429
+ borderBottomColor : StyleConfig . color_muted
430
430
} ,
431
431
432
432
input :{
Original file line number Diff line number Diff line change 4
4
Text ,
5
5
Image ,
6
6
TextInput ,
7
+ ScrollView ,
7
8
StyleSheet ,
8
9
TouchableOpacity
9
10
} from 'react-native' ;
@@ -172,7 +173,8 @@ class LoginPage extends Component {
172
173
ref = "txtPassword"
173
174
maxLength = { 40 }
174
175
style = { [ ComponentStyles . input ] }
175
- blurOnSubmit = { true }
176
+ blurOnSubmit = { true }
177
+ secureTextEntry = { true }
176
178
placeholder = { '请输入密码' }
177
179
placeholderTextColor = { StyleConfig . color_gray }
178
180
underlineColorAndroid = { 'transparent' }
@@ -226,12 +228,16 @@ class LoginPage extends Component {
226
228
227
229
render ( ) {
228
230
return (
229
- < View style = { [ ComponentStyles . container , styles . container ] } >
231
+ < View style = { [ ComponentStyles . container ] } >
230
232
{ this . renderHeader ( ) }
231
- { this . renderFormPanel ( ) }
233
+ < ScrollView
234
+ keyboardShouldPersistTaps = { true } >
235
+ { this . renderFormPanel ( ) }
236
+ </ ScrollView >
232
237
{ this . renderCopyRight ( ) }
233
238
{ this . renderPending ( ) }
234
239
</ View >
240
+
235
241
) ;
236
242
}
237
243
}
You can’t perform that action at this time.
0 commit comments