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
ba88592f
Commit
ba88592f
authored
Aug 13, 2025
by
tungnq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO: Sửa lỗi giao diện thông báo
parent
d569a1a6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
5 deletions
+63
-5
index.js
src/screens/notification/index.js
+37
-1
style.js
src/screens/notification/style.js
+4
-1
view.js
src/screens/notification/view.js
+22
-3
No files found.
src/screens/notification/index.js
View file @
ba88592f
...
@@ -71,7 +71,43 @@ const Notification = (props) => {
...
@@ -71,7 +71,43 @@ const Notification = (props) => {
],
],
Study
:
[],
Study
:
[],
Activity
:
[],
Activity
:
[],
Tuition
:
[],
Tuition
:
[
{
title_notifi_tuition
:
'Thông báo nghỉ học'
,
date_create
:
'Thông báo nghỉ học do tình hình bão số 4 phức tạp'
,
time_send
:
'14/4/2024'
,
style
:
'Thông báo cá nhân'
,
status
:
'Chưa gửi'
,
},
{
title_notifi_tuition
:
'Thông báo nghỉ học'
,
date_create
:
'Thông báo nghỉ học do tình hình bão số 4 phức tạp'
,
time_send
:
'14/4/2024'
,
style
:
'Thông báo cá nhân'
,
status
:
'Chưa gửi'
,
},
{
title_notifi_tuition
:
'Thông báo nghỉ học'
,
date_create
:
'Thông báo nghỉ học do tình hình bão số 4 phức tạp'
,
time_send
:
'14/4/2024'
,
style
:
'Thông báo cá nhân'
,
status
:
'Chưa gửi'
,
},
{
title_notifi_tuition
:
'Thông báo nghỉ học'
,
date_create
:
'Thông báo nghỉ học do tình hình bão số 4 phức tạp'
,
time_send
:
'14/4/2024'
,
style
:
'Thông báo cá nhân'
,
status
:
'Chưa gửi'
,
},
{
title_notifi_tuition
:
'Thông báo nghỉ học'
,
date_create
:
'Thông báo nghỉ học do tình hình bão số 4 phức tạp'
,
time_send
:
'14/4/2024'
,
style
:
'Thông báo cá nhân'
,
status
:
'Chưa gửi'
,
},
],
});
});
const
handleTabChange
=
(
tabKey
)
=>
{
const
handleTabChange
=
(
tabKey
)
=>
{
setActiveTab
(
tabKey
);
setActiveTab
(
tabKey
);
...
...
src/screens/notification/style.js
View file @
ba88592f
...
@@ -97,7 +97,9 @@ const styles = StyleSheet.create({
...
@@ -97,7 +97,9 @@ const styles = StyleSheet.create({
fontWeight
:
'500'
,
fontWeight
:
'500'
,
fontFamily
:
R
.
fonts
.
fontMedium
,
fontFamily
:
R
.
fonts
.
fontMedium
,
},
},
boxTime
:{
alignItems
:
'flex-end'
,
}
})
})
export
default
styles
;
export
default
styles
;
\ No newline at end of file
src/screens/notification/view.js
View file @
ba88592f
...
@@ -70,22 +70,41 @@ const NotificationView = props => {
...
@@ -70,22 +70,41 @@ const NotificationView = props => {
<
/View
>
<
/View
>
);
);
};
};
//List Notification
//List Notification
View
const
renderNotificationItem
=
({
item
})
=>
{
const
renderNotificationItem
View
=
({
item
})
=>
{
return
(
return
(
<
View
style
=
{
styles
.
cardItem
}
>
<
View
style
=
{
styles
.
cardItem
}
>
<
Text
style
=
{
styles
.
text
}
numberOfLines
=
{
1
}
ellipsizeMode
=
"tail"
>
{
item
.
title_notifi
}
<
/Text
>
<
Text
style
=
{
styles
.
text
}
numberOfLines
=
{
1
}
ellipsizeMode
=
"tail"
>
{
item
.
title_notifi
}
<
/Text
>
<
Text
style
=
{
styles
.
text
}
numberOfLines
=
{
2
}
ellipsizeMode
=
"tail"
>
{
item
.
message
}
<
/Text
>
<
Text
style
=
{
styles
.
text
}
numberOfLines
=
{
2
}
ellipsizeMode
=
"tail"
>
{
item
.
message
}
<
/Text
>
<
View
style
=
{
styles
.
boxTime
}
>
<
Text
style
=
{
styles
.
text
}
numberOfLines
=
{
1
}
ellipsizeMode
=
"tail"
>
{
item
.
time
}
<
/Text
>
<
Text
style
=
{
styles
.
text
}
numberOfLines
=
{
1
}
ellipsizeMode
=
"tail"
>
{
item
.
time
}
<
/Text
>
<
/View
>
<
/View
>
<
/View
>
);
);
};
};
//List Notification Tution
const
renderNotificationItemTution
=
({
item
})
=>
{
return
(
activeTab
===
'Tuition'
?
(
<
View
style
=
{
styles
.
cardItem
}
>
<
Text
style
=
{
styles
.
text
}
numberOfLines
=
{
1
}
ellipsizeMode
=
"tail"
>
{
item
.
title_notifi_tuition
}
<
/Text
>
<
Text
style
=
{
styles
.
text
}
numberOfLines
=
{
2
}
ellipsizeMode
=
"tail"
>
{
item
.
date_create
}
<
/Text
>
<
View
style
=
{
styles
.
boxTime
}
>
<
Text
style
=
{
styles
.
text
}
numberOfLines
=
{
1
}
ellipsizeMode
=
"tail"
>
{
item
.
time_send
}
<
/Text
>
<
/View
>
<
/View
>
)
:
null
);
};
const
renderListNotification
=
()
=>
{
const
renderListNotification
=
()
=>
{
return
(
return
(
<
FlatList
<
FlatList
data
=
{
dataNotifi
[
activeTab
]
||
[]}
data
=
{
dataNotifi
[
activeTab
]
||
[]}
renderItem
=
{
renderNotificationItem
}
renderItem
=
{
renderNotificationItem
View
||
renderNotificationItemTution
}
keyExtractor
=
{(
item
,
index
)
=>
`
${
activeTab
}
-
${
index
}
`
}
keyExtractor
=
{(
item
,
index
)
=>
`
${
activeTab
}
-
${
index
}
`
}
showsVerticalScrollIndicator
=
{
false
}
showsVerticalScrollIndicator
=
{
false
}
contentContainerStyle
=
{
styles
.
containerListNotification
}
contentContainerStyle
=
{
styles
.
containerListNotification
}
...
...
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