text: import React, { Component } from 'react';
  import { View, Text, StyleSheet } from 'react-native';
  import { connect } from 'react-redux';
  import { checkLogin } from './actions/AuthActions';
  
  export class Preload extends Component {
  
      static navigationOptions = {
          title:'',
          header:null
      }
  
      constructor(props){
          super(props);
          this.state = {}
      }
  
      render(){
          return (
              <View style={styles.container}>
                  <Text>Carregando ... {this.props.status}</Text>
              </View>
          )
      }
  }
  
  const styles = StyleSheet.create({
      container:{
          margin:10
      }
  });
  
  const mapStateToProps = (state) => {
      return {
          status:state.auth.status
      };
  };
  
  //Constante de conexão (Preload)->Tela que vai abrir
  const PreloadConnect = connect(mapStateToProps, { checkLogin })(Preload);
  export default PreloadConnect;