Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppUms_Lecturer
Overview
Overview
Details
Activity
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
tungnq
AppUms_Lecturer
Commits
00653950
Commit
00653950
authored
Sep 09, 2025
by
tungnq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO: Bổ sung logic ui khi bấm vào to me thì hạ render bottom card xuống và ngược lại
parent
84361ad9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
view.js
src/screens/email/detail/view.js
+11
-5
No files found.
src/screens/email/detail/view.js
View file @
00653950
import
React
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
import
{
Text
,
View
,
TouchableOpacity
,
Image
,
ScrollView
}
from
'react-native'
;
import
{
Text
,
View
,
TouchableOpacity
,
Image
,
ScrollView
}
from
'react-native'
;
import
styles
from
'./style'
;
import
styles
from
'./style'
;
import
Header
from
'../../../components/Header/Header'
;
import
Header
from
'../../../components/Header/Header'
;
...
@@ -7,6 +7,7 @@ import {useNavigation} from '@react-navigation/native';
...
@@ -7,6 +7,7 @@ import {useNavigation} from '@react-navigation/native';
const
DetailEmailView
=
props
=>
{
const
DetailEmailView
=
props
=>
{
const
{
incoming_document
}
=
props
;
const
{
incoming_document
}
=
props
;
const
navigation
=
useNavigation
();
const
navigation
=
useNavigation
();
const
[
showBottomCard
,
setShowBottomCard
]
=
useState
(
false
);
const
renderHeader
=
()
=>
{
const
renderHeader
=
()
=>
{
return
(
return
(
<
View
style
=
{
styles
.
header
}
>
<
View
style
=
{
styles
.
header
}
>
...
@@ -99,16 +100,21 @@ const DetailEmailView = props => {
...
@@ -99,16 +100,21 @@ const DetailEmailView = props => {
<
View
style
=
{
styles
.
avatarTextContainer
}
>
<
View
style
=
{
styles
.
avatarTextContainer
}
>
<
View
>
<
View
>
<
Text
style
=
{
styles
.
name
}
>
{
incoming_document
.
name
}
<
/Text
>
<
Text
style
=
{
styles
.
name
}
>
{
incoming_document
.
name
}
<
/Text
>
<
View
style
=
{
styles
.
toMeContainer
}
>
<
TouchableOpacity
style
=
{
styles
.
toMeContainer
}
onPress
=
{()
=>
setShowBottomCard
(
!
showBottomCard
)}
>
<
Text
>
<
Text
>
to
me
to
me
<
/Text
>
<
/Text
>
<
Image
<
Image
source
=
{
R
.
images
.
icDrop
}
source
=
{
R
.
images
.
icDrop
}
style
=
{
styles
.
iconDrop
}
style
=
{[
styles
.
iconDrop
,
{
transform
:
[{
rotate
:
showBottomCard
?
'180deg'
:
'0deg'
}]
}]}
resizeMode
=
"contain"
resizeMode
=
"contain"
/>
/>
<
/
View
>
<
/
TouchableOpacity
>
<
/View
>
<
/View
>
<
Text
style
=
{
styles
.
date
}
>
{
incoming_document
.
date
}
<
/Text
>
<
Text
style
=
{
styles
.
date
}
>
{
incoming_document
.
date
}
<
/Text
>
...
@@ -116,7 +122,7 @@ const DetailEmailView = props => {
...
@@ -116,7 +122,7 @@ const DetailEmailView = props => {
<
/View
>
<
/View
>
{
renderBottomCard
()}
{
showBottomCard
&&
renderBottomCard
()}
<
View
style
=
{{
marginVertical
:
15
}}
>
<
View
style
=
{{
marginVertical
:
15
}}
>
<
Text
style
=
{
styles
.
textContent
}
>
{
incoming_document
.
content
}
<
/Text
>
<
Text
style
=
{
styles
.
textContent
}
>
{
incoming_document
.
content
}
<
/Text
>
<
/View
>
<
/View
>
...
...
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