Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MC Semester Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thi Nguyen
MC Semester Project
Commits
7239d8dd
Commit
7239d8dd
authored
Jan 22, 2024
by
neyney2810
Browse files
Options
Downloads
Patches
Plain Diff
upgrade version
parent
f72d4de8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
package-lock.json
+2824
-1879
2824 additions, 1879 deletions
package-lock.json
package.json
+11
-11
11 additions, 11 deletions
package.json
screens/tabs/CatownerHome.js
+3
-3
3 additions, 3 deletions
screens/tabs/CatownerHome.js
with
2838 additions
and
1893 deletions
package-lock.json
+
2824
−
1879
View file @
7239d8dd
Source diff could not be displayed: it is too large. Options to address this:
view the blob
.
This diff is collapsed.
Click to expand it.
package.json
+
11
−
11
View file @
7239d8dd
...
...
@@ -10,31 +10,31 @@
"eject"
:
"expo eject"
},
"dependencies"
:
{
"
@expo/webpack-config
"
:
"
^1
8
.0.
1
"
,
"
@expo/webpack-config
"
:
"
^1
9
.0.
0
"
,
"
@firebase/auth
"
:
"
^1.5.1
"
,
"
@react-native-async-storage/async-storage
"
:
"
^
1.18.
1
"
,
"
@react-native-async-storage/async-storage
"
:
"
1.18.
2
"
,
"
@react-native-community/masked-view
"
:
"
^0.1.11
"
,
"
@react-navigation/bottom-tabs
"
:
"
^6.5.11
"
,
"
@react-navigation/native
"
:
"
^6.1.9
"
,
"
@react-navigation/native-stack
"
:
"
^6.9.17
"
,
"
@react-navigation/stack
"
:
"
^6.0.11
"
,
"
dotenv
"
:
"
^11.0.0
"
,
"
expo
"
:
"
^4
8
.0.
19
"
,
"
expo-constants
"
:
"
~14.
2.1
"
,
"
expo-status-bar
"
:
"
~1.
4.4
"
,
"
expo
"
:
"
^4
9
.0.
22
"
,
"
expo-constants
"
:
"
~14.
4.2
"
,
"
expo-status-bar
"
:
"
~1.
6.0
"
,
"
firebase
"
:
"
^9.9.3
"
,
"
radio-buttons-react-native
"
:
"
^1.0.4
"
,
"
react
"
:
"
18.2.0
"
,
"
react-dom
"
:
"
18.2.0
"
,
"
react-native
"
:
"
0.7
1.14
"
,
"
react-native
"
:
"
0.7
2.6
"
,
"
react-native-currency-input
"
:
"
^1.1.1
"
,
"
react-native-gesture-handler
"
:
"
~2.
9
.0
"
,
"
react-native-gesture-handler
"
:
"
~2.
12
.0
"
,
"
react-native-gifted-chat
"
:
"
^2.4.0
"
,
"
react-native-radio-buttons-group
"
:
"
^3.0.5
"
,
"
react-native-safe-area-context
"
:
"
4.
5.0
"
,
"
react-native-screens
"
:
"
~3.2
0
.0
"
,
"
react-native-web
"
:
"
~0.1
8.10
"
,
"
typescript
"
:
"
^
4.9.4
"
,
"
react-native-safe-area-context
"
:
"
4.
6.3
"
,
"
react-native-screens
"
:
"
~3.2
2
.0
"
,
"
react-native-web
"
:
"
~0.1
9.6
"
,
"
typescript
"
:
"
^
5.3.3
"
,
"
uuid
"
:
"
^9.0.1
"
},
"devDependencies"
:
{
...
...
This diff is collapsed.
Click to expand it.
screens/tabs/CatownerHome.js
+
3
−
3
View file @
7239d8dd
...
...
@@ -3,7 +3,7 @@ import { View, TouchableOpacity, Text, TextInput, FlatList, ImageBackground, Key
import
{
useNavigation
}
from
"
@react-navigation/native
"
;
import
{
FontAwesome
}
from
"
@expo/vector-icons
"
;
import
colors
from
"
../../colors
"
;
import
{
collection
,
query
,
onSnapshot
,
orderBy
,
where
}
from
"
firebase/firestore
"
;
import
{
collection
,
query
,
onSnapshot
,
orderBy
,
where
,
and
}
from
"
firebase/firestore
"
;
import
{
Entypo
}
from
"
@expo/vector-icons
"
;
import
{
CardItem
}
from
"
../../components
"
;
import
{
Icon
}
from
'
../../components
'
...
...
@@ -41,7 +41,7 @@ const CatownerHome = () => {
useLayoutEffect
(()
=>
{
const
collectionRef
=
collection
(
database
,
"
profiles
"
);
const
q
=
query
(
collectionRef
,
where
(
"
role
"
,
"
==
"
,
"
cat-sitter
"
,
orderBy
(
"
updatedAt
"
,
"
desc
"
))
)
;
const
q
=
query
(
collectionRef
,
and
(
where
(
"
role
"
,
"
==
"
,
"
cat-sitter
"
),
where
(
"
isOpen
"
,
"
==
"
,
true
))
,
orderBy
(
"
updatedAt
"
,
"
desc
"
));
const
unsubscribe
=
onSnapshot
(
q
,
(
querySnapshot
)
=>
{
setCatsitters
(
...
...
@@ -63,7 +63,7 @@ const CatownerHome = () => {
<
Text
style
=
{
styles
.
heading2
}
>
Your
Location
:
<
/Text
>
<
TouchableOpacity
style
=
{
styles
.
currentCity
}
>
<
Icon
name
=
"
navigate-outline
"
size
=
{
20
}
color
=
{
WHITE
}
/
>
<
Text
style
=
{
styles
.
textButton
}
>
New
York
,
USA
<
/Text
>
<
Text
style
=
{
styles
.
textButton
}
>
Reutlingen
<
/Text
>
<
/TouchableOpacity
>
<
/View
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment