Last active
April 28, 2020 16:42
-
-
Save AllGistsEqual/5a292a902e5b51b4e60a16e351a847ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect } from 'react' | |
import { Text } from 'react-native' | |
import PropTypes from 'prop-types' | |
import TouchableWrapper from '../../components/global/layout/TouchableWrapper' | |
import DefaultPage from '../../components/DefaultPage' | |
const SceneSplash = ({ navigation }) => { | |
useEffect(() => { | |
setTimeout(() => { | |
navigation.navigate('Login') | |
}, 2000) | |
}, []) | |
return ( | |
<TouchableWrapper handlePress={() => navigation.navigate('Login')}> | |
<DefaultPage> | |
<Text> | |
Splash | |
</Text> | |
</DefaultPage> | |
</TouchableWrapper> | |
) | |
} | |
SceneSplash.propTypes = { | |
navigation: PropTypes.object.isRequired, | |
} | |
export default SceneSplash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment