Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
react-native-learning
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shahzad Bhatti
react-native-learning
Commits
98f3aef8
Commit
98f3aef8
authored
Feb 26, 2023
by
Shahzad Bhatti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes
parent
86e31647
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
Cart.js
src/components/screens/Cart.js
+5
-8
Login.js
src/components/screens/Login.js
+1
-3
No files found.
src/components/screens/Cart.js
View file @
98f3aef8
...
...
@@ -57,21 +57,18 @@ const Cart = () => {
const
styles
=
StyleSheet
.
create
({
cartContiner
:
{
//
flex: 1,
flex
:
1
,
},
itemContainer
:
{
// flex: 0.5,
padding
:
10
,
//
flexDirection: 'row',
//
justifyContent: 'flex-start',
flexDirection
:
'row'
,
justifyContent
:
'flex-start'
,
},
imageContainer
:
{
flex
:
1
,
backgroundColor
:
'blue'
,
},
detailContainer
:
{
flex
:
3
,
backgroundColor
:
'#ccc'
,
},
title
:
{
fontSize
:
20
,
...
...
@@ -97,8 +94,8 @@ const styles = StyleSheet.create({
color
:
'#888'
,
},
image
:
{
width
:
8
0
,
height
:
8
0
,
width
:
4
0
,
height
:
4
0
,
},
price
:
{
fontSize
:
14
,
...
...
src/components/screens/Login.js
View file @
98f3aef8
...
...
@@ -8,7 +8,6 @@ import Field from '../ui/Field';
import
{
useNavigation
}
from
'@react-navigation/native'
;
import
{
googleLogin
,
login
}
from
'../../util/auth'
;
import
{
AuthContext
}
from
'../../store/AuthContext'
;
// import Button from '../ui/Button';
import
{
GoogleSignin
}
from
'@react-native-google-signin/google-signin'
;
const
Login
=
()
=>
{
...
...
@@ -27,9 +26,8 @@ const Login = () => {
console
.
log
(
error
);
Alert
.
alert
(
'Signup Failed'
,
'Something went wrong!'
);
}
// navigation.navigate('MedicineList');
// Alert.alert('Logged In', `you are login as ${email} with ${password}`);
};
const
googleLoginHandler
=
async
()
=>
{
try
{
const
res
=
await
googleLogin
();
...
...
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