Skip to content

Instantly share code, notes, and snippets.

@AllGistsEqual
Last active April 28, 2020 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AllGistsEqual/5a292a902e5b51b4e60a16e351a847ae to your computer and use it in GitHub Desktop.
Save AllGistsEqual/5a292a902e5b51b4e60a16e351a847ae to your computer and use it in GitHub Desktop.
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