diff options
| author | Ashm Walia <40498934+ashmgarv@users.noreply.github.com> | 2020-12-07 15:31:11 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-07 18:31:11 -0500 |
| commit | a6dd130d5b89650e1ff134595c071f7f9c6be114 (patch) | |
| tree | 91d00b982ce1a85e36c10e13b5474ad8f9fdadd2 /src/screens/onboarding/Splash.tsx | |
| parent | 5de44211bbadb451b5951eb3f77658d9bab42bc5 (diff) | |
[TMA-402] New and beautiful splashscreen (#135)
* Some changes
* Some more changes
* Final touch
Diffstat (limited to 'src/screens/onboarding/Splash.tsx')
| -rw-r--r-- | src/screens/onboarding/Splash.tsx | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/screens/onboarding/Splash.tsx b/src/screens/onboarding/Splash.tsx deleted file mode 100644 index 332b73b5..00000000 --- a/src/screens/onboarding/Splash.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import React, {useEffect} from 'react'; -import {RouteProp} from '@react-navigation/native'; -import {StackNavigationProp} from '@react-navigation/stack'; -import {Background} from '../../components'; -import {Image, StyleSheet} from 'react-native'; -import {OnboardingStackParams} from '../../routes'; - -type SplashScreenRouteProp = RouteProp<OnboardingStackParams, 'Login'>; -type SplashScreenNavigationProp = StackNavigationProp< - OnboardingStackParams, - 'Login' ->; -interface SplashProps { - route: SplashScreenRouteProp; - navigation: SplashScreenNavigationProp; -} -const Splash: React.FC<SplashProps> = ({navigation}) => { - useEffect(() => { - const timer = setTimeout(() => navigation.navigate('Login'), 1500); - return () => clearTimeout(timer); - }, [navigation]); - return ( - <Background centered> - <Image - source={require('../../assets/images/logo.png')} - style={styles.logo} - /> - </Background> - ); -}; -const styles = StyleSheet.create({ - logo: { - width: 284, - height: 197, - marginBottom: 0, - }, -}); - -export default Splash; |
