From 3dbd70b42b356cb53be573c97be02fd1c598f8ed Mon Sep 17 00:00:00 2001
From: Guilherme Gazzo <guilhermegazzo@gmail.com>
Date: Sun, 19 Nov 2017 00:30:09 -0200
Subject: [PATCH] loading on login

---
 app/views/LoginView.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app/views/LoginView.js b/app/views/LoginView.js
index 9af008fb5..5928a448d 100644
--- a/app/views/LoginView.js
+++ b/app/views/LoginView.js
@@ -1,6 +1,6 @@
 import React from 'react';
 
-// import Spinner from 'react-native-loading-spinner-overlay';
+import Spinner from 'react-native-loading-spinner-overlay';
 
 import PropTypes from 'prop-types';
 import { Keyboard, Text, TextInput, View, TouchableOpacity, SafeAreaView } from 'react-native';
@@ -143,6 +143,7 @@ class LoginView extends React.Component {
 							</TouchableOpacity>
 							{this.props.login.failure && <Text style={styles.error}>{this.props.login.error.reason}</Text>}
 						</View>
+						<Spinner visible={this.props.login.isFetching} textContent='Loading...' textStyle={{ color: '#FFF' }} />
 					</SafeAreaView>
 				</View>
 			</KeyboardView>
-- 
GitLab