Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-090 frontend
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
0
Merge Requests
0
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
2021-090
2021-090 frontend
Commits
f7af3dfe
Commit
f7af3dfe
authored
Jul 11, 2021
by
IT18111170-Silva S.H.I
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update: About us
parent
4fc95009
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
80 additions
and
0 deletions
+80
-0
App.js
App.js
+2
-0
Navigations/homeStack.js
Navigations/homeStack.js
+9
-0
screen/AboutUs.js
screen/AboutUs.js
+69
-0
No files found.
App.js
View file @
f7af3dfe
...
...
@@ -6,6 +6,7 @@ import { createDrawerNavigator } from "@react-navigation/drawer";
import
{
homeStack
}
from
"
./Navigations/homeStack
"
;
import
{
AuthStack
}
from
"
./Navigations/AuthStack
"
;
import
{
FontAwesome
}
from
'
@expo/vector-icons
'
;
import
{
AboutUs
}
from
'
./screen/AboutUs
'
;
const
Drawer
=
createDrawerNavigator
();
...
...
@@ -18,6 +19,7 @@ export default function App() {
<
Drawer
.
Navigator
initialRouteName
=
"
Authntications
"
>
<
Drawer
.
Screen
name
=
"
Authentications
"
component
=
{
AuthStack
}
/
>
<
Drawer
.
Screen
name
=
"
Agripreneurs
"
component
=
{
homeStack
}
/
>
<
Drawer
.
Screen
name
=
"
About Us
"
component
=
{
AboutUs
}
/
>
<
/Drawer.Navigator
>
<
/NavigationContainer
>
);
...
...
Navigations/homeStack.js
View file @
f7af3dfe
...
...
@@ -6,6 +6,7 @@ import { HomeScreen } from "../screen/HomeScreen";
import
{
Leaderboard
}
from
"
../screen/Leaderboard
"
;
import
{
PriceScreen
}
from
"
../screen/PriceScreen
"
;
import
{
gamification
}
from
"
../screen/gamification
"
;
import
{
AboutUs
}
from
"
../screen/AboutUs
"
;
const
Stack
=
createStackNavigator
();
...
...
@@ -53,6 +54,14 @@ export function homeStack({ navigation }) {
headerTitleAlign
:
"
center
"
,
}}
/
>
<
Stack
.
Screen
name
=
"
AboutUs
"
component
=
{
AboutUs
}
options
=
{{
title
:
"
About Page
"
,
headerTitleAlign
:
"
center
"
,
}}
/
>
<
/Stack.Navigator
>
);
}
screen/AboutUs.js
0 → 100644
View file @
f7af3dfe
// Example of Splash, Login and Sign Up in React Native
// https://aboutreact.com/react-native-login-and-signup/
// Import React and Component
import
React
from
'
react
'
;
import
{
StyleSheet
,
View
,
Text
,
TouchableOpacity
}
from
"
react-native
"
;
export
function
AboutUs
({
navigation
})
{
//to diable the yellow box warning on the simulator
console
.
disableYellowBox
=
true
;
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
>
<
Text
style
=
{
styles
.
topic
}
>
About
Us
<
/Text
>
<
/View
>
<
Text
style
=
{
styles
.
heading
}
>
What
is
Lorem
Ipsum
Lorem
Ipsum
is
simply
dummy
text
of
the
printing
and
typesetting
industry
Lorem
Ipsum
has
been
the
industry
'
s standard dummy text ever
since the 1500s when an unknown printer took a galley of type and
scrambled it to make a type specimen book it has?
</Text>
<Text style={styles.heading}>
What is Lorem Ipsum Lorem Ipsum is simply dummy text of the printing and
typesetting industry Lorem Ipsum has been the industry
'
s
standard
dummy
text
ever
since
the
1500
s
when
an
unknown
printer
took
a
galley
of
type
and
scrambled
it
to
make
a
type
specimen
book
it
has
?
<
/Text
>
<
Text
style
=
{
styles
.
heading2
}
>
125
,
Galle
road
,
colombo
-
3
.
0775555555
All
Right
Reserved
.
<
/Text
>
<
/View
>
);
}
const
styles
=
StyleSheet
.
create
({
heading
:
{
fontSize
:
17
,
alignSelf
:
"
center
"
,
marginTop
:
10
,
},
heading2
:
{
fontSize
:
15
,
alignSelf
:
"
center
"
,
marginTop
:
10
,
},
buttonText
:
{
color
:
"
#000
"
,
fontSize
:
15
,
marginLeft
:
8
},
container
:
{
marginTop
:
15
,
marginLeft
:
10
,
marginRight
:
10
,
},
topic
:
{
textAlign
:
'
center
'
,
color
:
'
#333
'
,
fontWeight
:
'
bold
'
,
padding
:
10
,
fontSize
:
18
,
marginTop
:
15
}
});
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