Commit fe514b49 authored by W.D.R.P. Sandeepa's avatar W.D.R.P. Sandeepa

splash page design

parent 0d16e54b
import { useNavigation } from "@react-navigation/native";
import React, { useEffect, useState } from "react";
import { Image, View, Text} from "react-native";
const Splash = () => {
const [isGo,setIsGo] = useState(true);
const Navigation = useNavigation();
useEffect( ()=>{
if(isGo == true){
setTimeout(()=>{
Navigation.navigate("Login");
setIsGo(false);
}, 2000);
}
})
return(
<View style={{flex:1, justifyContent:'center', alignItems:'center', backgroundColor: '#ffffff'}}>
<Text style={{fontWeight: 'bold',fontSize: 20, color: '#000000'}}>Welcome To</Text>
<Image source={require('../../assets/login/logo.png')} style={{width: 250, height:100}}></Image>
</View>
)
}
export default Splash;
\ No newline at end of file
Markdown is supported
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