diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-03-19 21:10:31 +0000 |
---|---|---|
committer | Samuel Newman <mozzius@protonmail.com> | 2024-03-19 21:10:31 +0000 |
commit | 8b5279ce15820b48b3557e49904bb736ca53e4d3 (patch) | |
tree | d5d817761402611cf1531998143c9ee871b3196c /src | |
parent | b226f41560f2e78d9148ec6e034fb0c00e25422a (diff) | |
download | voidsky-8b5279ce15820b48b3557e49904bb736ca53e4d3.tar.zst |
animate login spinner
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/Login/LoginForm.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/screens/Login/LoginForm.tsx b/src/screens/Login/LoginForm.tsx index eddcc9678..e9620db5c 100644 --- a/src/screens/Login/LoginForm.tsx +++ b/src/screens/Login/LoginForm.tsx @@ -2,6 +2,7 @@ import React, {useState, useRef} from 'react' import { ActivityIndicator, Keyboard, + LayoutAnimation, TextInput, TouchableOpacity, View, @@ -67,6 +68,7 @@ export const LoginForm = ({ const onPressNext = async () => { if (isProcessing) return Keyboard.dismiss() + LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut) setError('') setIsProcessing(true) @@ -101,6 +103,7 @@ export const LoginForm = ({ }) } catch (e: any) { const errMsg = e.toString() + LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut) setIsProcessing(false) if (errMsg.includes('Authentication Required')) { logger.debug('Failed to login due to invalid credentials', { |