Commit de603976 authored by ErlendHer's avatar ErlendHer
Browse files

#15 add loading spinner to LoginComponent

parent 149775dd
......@@ -13,6 +13,7 @@ import {
useWindowDimensions,
Button,
Pressable,
ActivityIndicator,
} from 'react-native';
import CustomInput from './CustomInput';
import AwesomeAlert from 'react-native-awesome-alerts';
......@@ -84,7 +85,6 @@ export default function App() {
width: '70%',
height: '100%',
},
logo: {
minWidth: 200,
maxWidth: 300,
......@@ -171,6 +171,7 @@ export default function App() {
setAlertmessage('');
}}
/>
{loading && <ActivityIndicator size="large" color="#00ff00" />}
</View>
);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment