CarlosWGama

Aula 04 - Interface 1

Jan 24th, 2023 (edited)
6,812
0
Never
3
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Button, ImageBackground, StyleSheet, Text, TextInput, View } from 'react-native';
  2. import bg from './../../assets/imgs/bg.png';
  3.  
  4. export interface LoginScreenProps {
  5. }
  6.  
  7. export default function LoginScreen(props: LoginScreenProps) {
  8.       return (
  9.           <ImageBackground source={bg} style={styles.background}>
  10.               <View style={styles.container}>
  11.                   <Text style={styles.logo}>APP</Text>
  12.  
  13.                     <View style={styles.main}>
  14.                         <Text style={styles.label}>Login</Text>
  15.                         <TextInput style={styles.input} placeholder='Digite seu email' />
  16.  
  17.                         <Text style={styles.label}>Senha</Text>
  18.                         <TextInput style={styles.input} secureTextEntry placeholder='Digite sua senha'/>
  19.  
  20.                         <Text style={styles.resetPassword}>Esqueceu a senha?</Text>    
  21.                         <Button title="Logar" />
  22.                     </View>
  23.               </View>
  24.           </ImageBackground>
  25.       );
  26.   }
  27.  
  28.   const styles = StyleSheet.create({
  29.       background: {width:'100%', height:'100%'},
  30.       container: {
  31.           flex: 1,
  32.           justifyContent: 'center',
  33.           padding: 10,
  34.           alignItems: 'stretch'
  35.       },
  36.       logo: { color: 'white', fontSize: 50, textAlign: 'center'},
  37.  
  38.       main: { padding: 30},
  39.       label: { color: 'white' },
  40.       input: { backgroundColor: 'rgba(255,255,255,0.5)', borderRadius: 10},
  41.       resetPassword: { textAlign: 'center', marginVertical: 10, color: 'white'}
  42.  
  43. });
  44.  
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment