removed blank bottom space

This commit is contained in:
Diego Mello 2017-11-01 16:05:27 -02:00
parent 470b83d36e
commit e349a4b23f
3 changed files with 12 additions and 9 deletions

View File

@ -71,7 +71,6 @@ class LoginView extends React.Component {
render() {
return (
<KeyboardView
style={{ flex: 1 }}
contentContainerStyle={styles.container}
keyboardVerticalOffset={128}
>
@ -117,7 +116,7 @@ class LoginView extends React.Component {
<Text style={styles.button} onPress={this.submit}>LOGIN</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.buttonContainer}>
<TouchableOpacity style={[styles.buttonContainer, styles.registerContainer]}>
<Text style={styles.button} onPress={this.register}>REGISTER</Text>
</TouchableOpacity>

View File

@ -144,7 +144,7 @@ class RegisterView extends React.Component {
placeholder={this.props.Accounts_RepeatPasswordPlaceholder || 'Repeat Password'}
/>
<TouchableOpacity style={styles.buttonContainer}>
<TouchableOpacity style={[styles.buttonContainer, styles.registerContainer]}>
<Text
style={[styles.button, this._valid() ? {}
: { color: placeholderTextColor }

View File

@ -2,10 +2,12 @@ import { StyleSheet, Dimensions } from 'react-native';
export default StyleSheet.create({
container: {
backgroundColor: '#2f343d'
backgroundColor: '#2f343d',
flex: 1
},
loginView: {
padding: 20
padding: 20,
justifyContent: 'flex-end'
},
view: {
flex: 1,
@ -26,7 +28,8 @@ export default StyleSheet.create({
},
logoContainer: {
alignItems: 'center',
justifyContent: 'center'
justifyContent: 'center',
flex: 1
},
loginLogo: {
width: Dimensions.get('window').width - 150,
@ -38,9 +41,7 @@ export default StyleSheet.create({
height: 100,
resizeMode: 'contain'
},
formContainer: {
// marginBottom: 20
},
formContainer: {},
label: {
lineHeight: 40,
height: 40,
@ -93,6 +94,9 @@ export default StyleSheet.create({
backgroundColor: '#1d74f5',
marginBottom: 20
},
registerContainer: {
marginBottom: 0
},
button: {
textAlign: 'center',
color: 'white',