Commit af287a8c authored by Gunasekara M.A.L.M's avatar Gunasekara M.A.L.M

creating splashing screen.js

parent 1f339fd6
import React, { PropTypes, Component, useState, useEffect } from 'react';
import {View,StyleSheet, Text, Image} from 'react-native';
import {widthPercentageToDP as wp, heightPercentageToDP as hp} from 'react-native-responsive-screen';
import { Actions } from 'react-native-router-flux';
import logo from '../../assert/images/logo.jpeg';
const SplashScreen = () => {
useEffect(()=>{
setTimeout(()=>{
Actions.authenticated();
},2000);
});
return(
<View style={styles.body}>
<View style={styles.container}>
<View style={styles.holder}>
{/* <Text style={styles.titel_text}>BusTraker</Text> */}
{/* <Image source={logo} style={styles.logoStyle}/> */}
<Text style={styles.titel_text}>Lets plan your trip</Text>
</View>
</View>
</View>
);
}
const styles = StyleSheet.create({
body : {
flex : 1,
backgroundColor : '#00186C'
},
container : {
height : hp('100%'),
width:wp('100%'),
alignItems:'center',
justifyContent:'center'
},
holder : {
height : hp('20%'),
width:wp('100%'),
alignItems:'center',
justifyContent:'center'
},
titel_text : {
fontSize: hp('5%'),
fontWeight:'bold',
color:'#fff'
},
logoStyle : {
height : 350,
width: 300,
alignItems:'center',
borderRadius:10,
}
});
export default SplashScreen;
\ 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