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
5261cb71
Commit
5261cb71
authored
Sep 25, 2021
by
IT18111170-Silva S.H.I
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: sammler chenges bugs
parent
12dd55fc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
Navigations/AuthStack.js
Navigations/AuthStack.js
+7
-4
screen/HomeScreen.js
screen/HomeScreen.js
+2
-1
screen/SignIn.js
screen/SignIn.js
+3
-1
screen/SignUp.js
screen/SignUp.js
+1
-0
No files found.
Navigations/AuthStack.js
View file @
5261cb71
...
...
@@ -30,6 +30,9 @@ export function AuthStack({ navigation }) {
/
>
);
},
headerStyle
:
{
backgroundColor
:
'
white
'
,
},
headerLeftContainerStyle
:
{
paddingLeft
:
10
},
headerRight
:
()
=>
{
return
(
...
...
@@ -65,7 +68,7 @@ export function AuthStack({ navigation }) {
const
stngobj
=
JSON
.
stringify
(
response
.
data
)
console
.
log
(
stngobj
+
"
logged out
"
);
console
.
log
(
"
Successfully logged out
"
);
//
alert("Successfully Logged out")
alert
(
"
Successfully Logged out
"
)
navigation
.
navigate
(
"
SignIn
"
)
})
.
catch
(
function
(
error
)
{
...
...
@@ -93,7 +96,7 @@ export function AuthStack({ navigation }) {
const
stngobj
=
JSON
.
stringify
(
response
.
data
)
console
.
log
(
stngobj
+
"
logged out
"
);
console
.
log
(
"
Successfully logged out
"
);
//
alert("Successfully Logged out")
alert
(
"
Successfully Logged out
"
)
navigation
.
navigate
(
"
SignIn
"
)
})
.
catch
(
function
(
error
)
{
...
...
@@ -121,7 +124,7 @@ export function AuthStack({ navigation }) {
const
stngobj
=
JSON
.
stringify
(
response
.
data
)
console
.
log
(
stngobj
+
"
logged out
"
);
console
.
log
(
"
Successfully logged out
"
);
//
alert("Successfully Logged out")
alert
(
"
Successfully Logged out
"
)
navigation
.
navigate
(
"
SignIn
"
)
})
.
catch
(
function
(
error
)
{
...
...
@@ -149,7 +152,7 @@ export function AuthStack({ navigation }) {
const
stngobj
=
JSON
.
stringify
(
response
.
data
)
console
.
log
(
stngobj
+
"
logged out
"
);
console
.
log
(
"
Successfully logged out
"
);
//
alert("Successfully Logged out")
alert
(
"
Successfully Logged out
"
)
navigation
.
navigate
(
"
SignIn
"
)
})
.
catch
(
function
(
error
)
{
...
...
screen/HomeScreen.js
View file @
5261cb71
...
...
@@ -32,7 +32,7 @@ export function HomeScreen({ navigation }) {
style
=
{
styles
.
images
}
>
<
ImageSliderz
height
=
{
4
25
}
height
=
{
4
50
}
dataSource
=
{[
{
url
:
require
(
"
../assets/d.jpg
"
),
...
...
@@ -118,6 +118,7 @@ const styles = StyleSheet.create({
fontSize
:
15
,
alignSelf
:
"
center
"
,
marginTop
:
5
,
marginBottom
:
10
},
saveExam
:
{
width
:
"
70%
"
,
...
...
screen/SignIn.js
View file @
5261cb71
...
...
@@ -181,7 +181,7 @@ const styles = StyleSheet.create({
backgroundColor
:
"
white
"
,
},
buttonSub
:
{
width
:
"
8
0
%
"
,
width
:
"
8
3
%
"
,
padding
:
10
,
marginTop
:
30
,
marginLeft
:
30
,
...
...
@@ -247,7 +247,9 @@ const styles = StyleSheet.create({
flexDirection
:
"
row
"
,
// marginBottom: 10,
justifyContent
:
"
center
"
,
alignItems
:
"
center
"
,
borderRadius
:
8
,
height
:
35
},
errorMsg
:
{
color
:
"
black
"
,
...
...
screen/SignUp.js
View file @
5261cb71
...
...
@@ -74,6 +74,7 @@ export function SignUp({ navigation }) {
.
then
(
function
(
response
){
console
.
log
(
"
abc
"
+
response
)
actions
.
resetForm
();
alert
(
"
User successfully created
"
)
// return response;
})
.
catch
(
function
(
error
){
...
...
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