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
67f2c093
Commit
67f2c093
authored
Aug 18, 2025
by
tungnq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO: Đã hoàn thiện luồng thông báo
parent
45dfc3f6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
9 deletions
+8
-9
StackNavigation.js
src/routers/StackNavigation.js
+1
-1
index.js
src/screens/notification/detail/index.js
+2
-5
view.js
src/screens/notification/detail/view.js
+0
-1
view.js
src/screens/notification/view.js
+5
-2
No files found.
src/routers/StackNavigation.js
View file @
67f2c093
...
@@ -16,7 +16,7 @@ function MyStack(props) {
...
@@ -16,7 +16,7 @@ function MyStack(props) {
headerStatusBarHeight
:
0
,
headerStatusBarHeight
:
0
,
}}
}}
headerMode
=
{
'none'
}
headerMode
=
{
'none'
}
initialRouteName
=
{
ScreenName
.
ADDNOTIFICATION
}
>
initialRouteName
=
{
ScreenName
.
TABNAVIGATOR
}
>
<
Stack
.
Screen
name
=
{
ScreenName
.
HOMESCREEN
}
component
=
{
Home
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
HOMESCREEN
}
component
=
{
Home
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
TABNAVIGATOR
}
component
=
{
TabNavigator
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
TABNAVIGATOR
}
component
=
{
TabNavigator
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
DETAILNOTIFICATION
}
component
=
{
NotificationDetail
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
DETAILNOTIFICATION
}
component
=
{
NotificationDetail
}
/
>
...
...
src/screens/notification/detail/index.js
View file @
67f2c093
...
@@ -28,11 +28,8 @@ const NotificationDetail = (props) => {
...
@@ -28,11 +28,8 @@ const NotificationDetail = (props) => {
]);
]);
return
(
return
(
<
NotificationDetailView
<
NotificationDetailView
options
=
{
options
}
dataList
=
{
dataList
}
selectedValue
=
{
selectedValue
}
onValueChange
=
{
onValueChange
}
dataList
=
{
dataList
}
/
>
/
>
);
);
};
};
...
...
src/screens/notification/detail/view.js
View file @
67f2c093
...
@@ -5,7 +5,6 @@ import Header from '../../../components/Header/Header';
...
@@ -5,7 +5,6 @@ import Header from '../../../components/Header/Header';
import
TextField
from
'../../../components/Input/TextField'
;
import
TextField
from
'../../../components/Input/TextField'
;
import
R
from
'../../../assets/R'
;
import
R
from
'../../../assets/R'
;
import
TextMulti
from
'../../../components/Input/TextMulti'
;
import
TextMulti
from
'../../../components/Input/TextMulti'
;
import
RadioGroup
from
'../../../components/RadioButton/RadioGroup'
;
import
Button
from
'../../../components/Button'
;
import
Button
from
'../../../components/Button'
;
const
NotificationDetailView
=
props
=>
{
const
NotificationDetailView
=
props
=>
{
const
{
const
{
...
...
src/screens/notification/view.js
View file @
67f2c093
...
@@ -11,6 +11,8 @@ import {
...
@@ -11,6 +11,8 @@ import {
import
Header
from
'../../components/Header/Header'
;
import
Header
from
'../../components/Header/Header'
;
import
styles
from
'./style'
;
import
styles
from
'./style'
;
import
R
from
'../../assets/R'
;
import
R
from
'../../assets/R'
;
import
*
as
SCREENNAME
from
"../../routers/ScreenNames"
;
import
{
useNavigation
}
from
"@react-navigation/native"
;
const
NotificationView
=
props
=>
{
const
NotificationView
=
props
=>
{
const
{
const
{
dataTitleListTabView
,
dataTitleListTabView
,
...
@@ -21,6 +23,7 @@ const NotificationView = props => {
...
@@ -21,6 +23,7 @@ const NotificationView = props => {
searchText
,
searchText
,
onSearchChange
,
onSearchChange
,
}
=
props
;
}
=
props
;
const
navigate
=
useNavigation
();
//Xử lý render item cho tab view
//Xử lý render item cho tab view
const
getRenderItemFunction
=
()
=>
{
const
getRenderItemFunction
=
()
=>
{
switch
(
activeTab
)
{
switch
(
activeTab
)
{
...
@@ -111,7 +114,7 @@ const NotificationView = props => {
...
@@ -111,7 +114,7 @@ const NotificationView = props => {
const
renderNotificationItemTution
=
({
item
})
=>
{
const
renderNotificationItemTution
=
({
item
})
=>
{
const
statusColor
=
getStatusColor
(
item
.
status
);
const
statusColor
=
getStatusColor
(
item
.
status
);
return
(
return
(
<
TouchableOpacity
style
=
{[
styles
.
cardItem
,
styles
.
cardItemTution
]}
>
<
TouchableOpacity
style
=
{[
styles
.
cardItem
,
styles
.
cardItemTution
]}
onPress
=
{()
=>
navigate
.
navigate
(
SCREENNAME
.
DETAILNOTIFICATION
)}
>
<
View
style
=
{
styles
.
boxLeft
}
>
<
View
style
=
{
styles
.
boxLeft
}
>
<
Text
style
=
{
styles
.
text
}
numberOfLines
=
{
1
}
ellipsizeMode
=
"tail"
>
<
Text
style
=
{
styles
.
text
}
numberOfLines
=
{
1
}
ellipsizeMode
=
"tail"
>
<
Text
style
=
{
styles
.
text
}
>
Ti
ê
u
đề
:
<
/Text
>
<
Text
style
=
{
styles
.
text
}
>
Ti
ê
u
đề
:
<
/Text
>
...
@@ -195,7 +198,7 @@ const NotificationView = props => {
...
@@ -195,7 +198,7 @@ const NotificationView = props => {
<
View
style
=
{
styles
.
containerFooter
}
>
<
View
style
=
{
styles
.
containerFooter
}
>
<
TouchableOpacity
<
TouchableOpacity
style
=
{
styles
.
btnFooter
}
style
=
{
styles
.
btnFooter
}
onPress
=
{()
=>
navigate
.
navigate
(
SCREENNAME
.
PROFILE
)}
>
onPress
=
{()
=>
navigate
.
navigate
(
SCREENNAME
.
ADDNOTIFICATION
)}
>
<
Text
style
=
{
styles
.
textBtnFooter
}
>
T
ạ
o
th
ô
ng
b
á
o
m
ớ
i
<
/Text
>
<
Text
style
=
{
styles
.
textBtnFooter
}
>
T
ạ
o
th
ô
ng
b
á
o
m
ớ
i
<
/Text
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/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