Guest User

Untitled

a guest
Mar 1st, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. import Login from './Login';
  2.  
  3. export default class Perfilextends Component {
  4.  
  5. constructor(props) {
  6. super(props);
  7. this.state = {
  8. username: '',
  9. password: '',
  10. }
  11. }
  12.  
  13. render() {
  14. return (
  15. <KeyboardAvoidingView behavior="padding" style={estilos.contenedor}>
  16. <ImageBackground source={require('../assets/img/fondo_pantalla.jpg')} style={estilos.FondoLogin} >
  17.  
  18.  
  19. <Image style={{width: winSize.width - 80, height: 100, marginTop: 100 }} source={require('../assets/img/logo_login.png')} resizeMode="contain"/>
  20.  
  21. <View style={{width: winSize.width - 70}}>
  22.  
  23. <Form>
  24. <Item floatingLabel stackedLabel>
  25. <Label><Text style={estilos.textoCampos}>Matrícula:</Text></Label>
  26. <Input onChangeText={(username) => this.setState({username})}
  27. value={this.state.username} returnKeyType="next" style={{color: '#fff', marginBottom: -20}}/>
  28. </Item>
  29. <Item floatingLabel stackedLabel>
  30. <Label><Text style={estilos.textoCampos}>Password:</Text></Label>
  31. <Input onChangeText={(password) => this.setState({password})}
  32. value={this.state.password} secureTextEntry={true} returnKeyType="go" style={{color: '#fff', marginBottom: -20}}/>
  33. </Item>
  34. </Form>
  35.  
  36. </View>
  37.  
  38. <TouchableOpacity style={estilos.btnLogin} onPress={this.boton}>
  39. <Text style={estilos.btnText}>INICIAR SESIÓN</Text>
  40. </TouchableOpacity>
  41.  
  42. </ImageBackground>
  43.  
  44. </KeyboardAvoidingView >
  45. );
  46. }
  47. }
Add Comment
Please, Sign In to add comment