0
I’m trying to create the variables that will receive the User and Password data,I tried several ways using state and setState, but the way I built my application I’m not getting. Thanks for the help
import React from 'react';
import { TextInput, Text, View, TouchableOpacity } from 'react-native';
import styles from '../Style/LoginStyles'
// Tela de Login
const Login = ({ navigation }) => (
  <View style={styles.backgroundImage}>
    <View style={styles.WindowLogin}>
      <Text style={styles.Label}>Informe seus dados</Text>
      <TextInput placeholder='Login' style={styles.TextInput}/>
      <TextInput placeholder='Senha' style={styles.TextInput} secureTextEntry />
      <TouchableOpacity onPress={() => navigation.navigate('Cadastro')}>
        <View style={styles.Button}>
          <Text style={{ color: '#FFF' } , {fontSize: 24}}>Entrar</Text>
        </View>           
      </TouchableOpacity>
      <TouchableOpacity>
        <Text style={{ color: '#FFF' } , {fontSize: 18}}>Esqueci minha senha</Text>
      </TouchableOpacity>    
    </View >        
  </View >
)
Login.navigationOptions = {
  title: 'Home'
}
export default Login
						
Some mistake? There is no state in your code
– Costamilam