Skip to content

Commit 8f7532f

Browse files
author
togayther
committed
handle login page input detail.
1 parent ed590e2 commit 8f7532f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

source/style/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ export const ComponentStyles = StyleSheet.create({
426426
input_control:{
427427
paddingVertical: StyleConfig.space_3,
428428
borderBottomWidth:.5,
429-
borderBottomColor: StyleConfig.color_dark
429+
borderBottomColor: StyleConfig.color_muted
430430
},
431431

432432
input:{

source/view/login.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
Text,
55
Image,
66
TextInput,
7+
ScrollView,
78
StyleSheet,
89
TouchableOpacity
910
} from 'react-native';
@@ -172,7 +173,8 @@ class LoginPage extends Component {
172173
ref="txtPassword"
173174
maxLength = { 40 }
174175
style={ [ComponentStyles.input ] }
175-
blurOnSubmit= {true}
176+
blurOnSubmit= { true }
177+
secureTextEntry = { true }
176178
placeholder={'请输入密码'}
177179
placeholderTextColor={ StyleConfig.color_gray }
178180
underlineColorAndroid = { 'transparent' }
@@ -226,12 +228,16 @@ class LoginPage extends Component {
226228

227229
render() {
228230
return (
229-
<View style={ [ComponentStyles.container, styles.container] }>
231+
<View style={ [ComponentStyles.container] }>
230232
{ this.renderHeader() }
231-
{ this.renderFormPanel() }
233+
<ScrollView
234+
keyboardShouldPersistTaps = { true }>
235+
{ this.renderFormPanel() }
236+
</ScrollView>
232237
{ this.renderCopyRight() }
233238
{ this.renderPending() }
234239
</View>
240+
235241
);
236242
}
237243
}

0 commit comments

Comments
 (0)