Commit 8a5eea75 by MathiasGattiElbern

ajuste final cadastro

1 parent b2ed7d5d
{
"devToolsPort": 19002,
"expoServerPort": null,
"packagerPort": null,
"packagerPid": null,
"expoServerNgrokUrl": null,
"packagerNgrokUrl": null,
"ngrokPid": null,
"webpackServerPort": null
"packagerPort": null,
"packagerPid": null,
"devToolsPort": 19002
}
\ No newline at end of file
{
"hostType": "tunnel",
"hostType": "lan",
"lanType": "ip",
"dev": true,
"minify": false,
......
......@@ -38,7 +38,7 @@ const AppNavigator = createStackNavigator(
TelaCadastro
},
{
initialRouteName: 'TelaCadastro',
initialRouteName: 'Login',
defaultNavigationOptions: {
headerStyle: {
backgroundColor: 'transparent',
......
......@@ -71,11 +71,17 @@ export default class Login extends Component {
{this.state.errorMessage}
</Text>
</View>
<View style={{flex: 3, backgroundColor: 'white'}}>
<TouchableOpacity style={styles.loginButtonContainer}
onPress={() => {this.setState({ errorMessage: 'Por favor, aguarde.' }), this.handleLogin()}}>
<Text style={styles.loginButtonText}>Entrar</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.loginButtonContainer}
onPress={() => this.props.navigation.navigate('TelaCadastro')}>
<Text style={styles.loginButtonText}>Cadastrar</Text>
</TouchableOpacity>
</View>
......
......@@ -98,12 +98,7 @@ export default class TelaCadastro extends Component{
color="#00DC7B"
/> :
<KeyboardAvoidingView behavior={"padding"} style={styles.container} enabled number="2" >
<View style={{flex: 1} [styles.flowButtonsContainer, { marginTop: 5 }]}>
<BotaoAnterior
endereco='Login'
navigation={this.props.navigation}
/>
<View style={{flex: 1} [styles.flowButtonsContainer, { marginTop: 5 }]}>
<InputTexto
label="Nome"
max={100}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!