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
0900dbb7
Commit
0900dbb7
authored
Oct 10, 2021
by
Pramodh Rajapakse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auth stack auction screen nav added
parent
af4c101f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
5 deletions
+34
-5
Navigations/AuthStack.js
Navigations/AuthStack.js
+34
-5
No files found.
Navigations/AuthStack.js
View file @
0900dbb7
...
@@ -11,6 +11,7 @@ import { gamification } from "../screen/gamification";
...
@@ -11,6 +11,7 @@ import { gamification } from "../screen/gamification";
import
{
IotScreen
}
from
"
../screen/IotScreen
"
;
import
{
IotScreen
}
from
"
../screen/IotScreen
"
;
import
{
AboutUs
}
from
"
../screen/AboutUs
"
;
import
{
AboutUs
}
from
"
../screen/AboutUs
"
;
import
axios
from
"
axios
"
;
import
axios
from
"
axios
"
;
import
HomeAuctionScreen
from
"
../screen/Home.Auction.Screen
"
;
const
Stack
=
createStackNavigator
();
const
Stack
=
createStackNavigator
();
...
@@ -187,6 +188,34 @@ export function AuthStack({ navigation }) {
...
@@ -187,6 +188,34 @@ export function AuthStack({ navigation }) {
},
},
}}
}}
/
>
/
>
<
Stack
.
Screen
name
=
"
auctionscreen
"
component
=
{
HomeAuctionScreen
}
options
=
{{
title
:
"
Auction Screen
"
,
headerTitleAlign
:
"
center
"
,
headerRight
:
()
=>
{
return
(
<
MaterialIcons
name
=
"
logout
"
size
=
{
30
}
color
=
"
black
"
onPress
=
{()
=>
axios
.
get
(
"
http://192.168.8.126:5000/logout
"
,
)
.
then
(
function
(
response
)
{
const
stngobj
=
JSON
.
stringify
(
response
.
data
)
console
.
log
(
stngobj
+
"
logged out
"
);
console
.
log
(
"
Successfully logged out
"
);
alert
(
"
Successfully Logged out
"
)
navigation
.
navigate
(
"
SignIn
"
)
})
.
catch
(
function
(
error
)
{
console
.
log
(
error
);
alert
(
"
Login failed
"
)
})}
/
>
);
},
}}
/
>
<
Stack
.
Screen
<
Stack
.
Screen
name
=
"
AboutUs
"
name
=
"
AboutUs
"
component
=
{
AboutUs
}
component
=
{
AboutUs
}
...
...
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