diff --git a/app/views/LoginView.js b/app/views/LoginView.js index 9af008fb5263c46ade15995258f5caec33b28248..5928a448da9ad4da9a2db996b0c3e8627bcdf58c 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>