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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thi Nguyen
MC Semester Project
Merge requests
!2
Draft: Master
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Draft: Master
master
into
feature/update-08.01
Overview
0
Commits
6
Pipelines
0
Changes
1
Merged
Thi Nguyen
requested to merge
master
into
feature/update-08.01
1 year ago
Overview
0
Commits
6
Pipelines
0
Changes
1
Expand
Lorem impsum dolor sit amet
0
0
Merge request reports
Viewing commit
9c86141e
Prev
Next
Show latest version
1 file
+
9
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
9c86141e
title
· 9c86141e
neyney2810
authored
1 year ago
screens/tabs/Catsitter.js
+
9
−
1
Options
@@ -8,13 +8,21 @@ import styles, {
LIKE_ACTIONS
,
WHITE
,
}
from
"
../../assets/styles
"
;
import
{
useNavigation
}
from
"
@react-navigation/native
"
;
const
Catsitter
=
({
route
})
=>
{
const
navigation
=
useNavigation
()
const
{
id
}
=
route
.
params
;
const
[
catsitter
,
setCatsitter
]
=
useState
({});
useLayoutEffect
(()
=>
{
navigation
.
setOptions
({
title
:
catsitter
.
displayName
});
},
[
catsitter
]);
useLayoutEffect
(()
=>
{
if
(
!
id
)
return
;
const
collectionRef
=
collection
(
database
,
"
profiles
"
);
@@ -74,7 +82,7 @@ const Catsitter = ({ route }) => {
{
/* NAME */
}
<
Text
style
=
{
nameStyle
}
>
{
catsitter
.
n
ame
}
<
/Text
>
<
Text
style
=
{
nameStyle
}
>
{
catsitter
.
displayN
ame
}
<
/Text
>
<
Text
>
Cat
Sitter
Age
:
{
catsitter
.
age
}
<
/Text
>
<
Text
>
Cat
Sitter
Price
Per
Night
:
{
catsitter
.
price
}
<
/Text
>
Loading