Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022_223_Digi Bus
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gunasekara M.A.L.M
2022_223_Digi Bus
Commits
af287a8c
Commit
af287a8c
authored
Oct 07, 2022
by
Gunasekara M.A.L.M
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
creating splashing screen.js
parent
1f339fd6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
0 deletions
+62
-0
digibus/src/screen/splash_screen/splashscreen.js
digibus/src/screen/splash_screen/splashscreen.js
+62
-0
No files found.
digibus/src/screen/splash_screen/splashscreen.js
0 → 100644
View file @
af287a8c
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
}
>
Let
’
s
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment