Commit de603976 authored by ErlendHer's avatar ErlendHer
Browse files

#15 add loading spinner to LoginComponent

parent 149775dd
...@@ -13,6 +13,7 @@ import { ...@@ -13,6 +13,7 @@ import {
useWindowDimensions, useWindowDimensions,
Button, Button,
Pressable, Pressable,
ActivityIndicator,
} from 'react-native'; } from 'react-native';
import CustomInput from './CustomInput'; import CustomInput from './CustomInput';
import AwesomeAlert from 'react-native-awesome-alerts'; import AwesomeAlert from 'react-native-awesome-alerts';
...@@ -84,7 +85,6 @@ export default function App() { ...@@ -84,7 +85,6 @@ export default function App() {
width: '70%', width: '70%',
height: '100%', height: '100%',
}, },
logo: { logo: {
minWidth: 200, minWidth: 200,
maxWidth: 300, maxWidth: 300,
...@@ -171,6 +171,7 @@ export default function App() { ...@@ -171,6 +171,7 @@ export default function App() {
setAlertmessage(''); setAlertmessage('');
}} }}
/> />
{loading && <ActivityIndicator size="large" color="#00ff00" />}
</View> </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