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
21d5a486
Commit
21d5a486
authored
Aug 29, 2025
by
tungnq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO: Refactor lại Sub_Button và điều chỉnh giao diện list_work
parent
c8eaec98
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
14 deletions
+36
-14
sub_button.js
src/components/FAB/sub_button.js
+6
-2
style.js
src/screens/list_work/style.js
+10
-1
view.js
src/screens/list_work/view.js
+20
-11
No files found.
src/components/FAB/sub_button.js
View file @
21d5a486
...
@@ -18,8 +18,12 @@ import {
...
@@ -18,8 +18,12 @@ import {
import
R
from
'../../assets/R'
;
import
R
from
'../../assets/R'
;
// Component SubButton (nút con của FAB)
// Component SubButton (nút con của FAB)
const
SubButton
=
props
=>
{
const
SubButton
=
({
const
{
label
,
onPress
,
images
,
backgroundColor
}
=
props
;
label
,
onPress
,
images
,
backgroundColor
})
=>
{
// Biến sharedValue để quản lý độ mờ (opacity) khi nhấn giữ
// Biến sharedValue để quản lý độ mờ (opacity) khi nhấn giữ
const
buttonOpacity
=
useSharedValue
(
1
);
const
buttonOpacity
=
useSharedValue
(
1
);
...
...
src/screens/list_work/style.js
View file @
21d5a486
import
{
StyleSheet
,
Text
,
View
}
from
'react-native'
import
{
StyleSheet
,
Text
,
View
}
from
'react-native'
import
R
from
'../../assets/R'
const
styles
=
StyleSheet
.
create
({
const
styles
=
StyleSheet
.
create
({
container
:{
flex
:
1
,
backgroundColor
:
R
.
colors
.
white
},
body
:{
flex
:
1
,
backgroundColor
:
R
.
colors
.
white
}
})
})
export
default
styles
export
default
styles
\ No newline at end of file
src/screens/list_work/view.js
View file @
21d5a486
import
React
from
'react'
;
import
React
from
'react'
;
import
{
Text
,
View
,
TouchableOpacity
,
StyleSheet
}
from
'react-native'
;
import
{
Text
,
View
,
TouchableOpacity
,
StyleSheet
}
from
'react-native'
;
import
styles
from
'./style'
;
import
FAB
from
'../../components/FAB/fab'
;
import
SubButton
from
'../../components/FAB/sub_button'
;
import
Header
from
'../../components/Header/Header'
;
import
Dropdown
from
'../../components/DropdownAlert/Dropdown'
;
import
R
from
'../../assets/R'
;
const
ListWorkView
=
(
props
)
=>
{
const
ListWorkView
=
(
props
)
=>
{
const
{
}
=
props
;
const
{
}
=
props
;
return
(
return
(
<
View
<
View
style
=
{{
style
=
{
styles
.
container
}
>
flex
:
1
,
<
Header
title
=
{
'Danh sách công việc'
}
isBack
/>
justifyContent
:
'center'
,
<
View
style
=
{
styles
.
body
}
>
alignItems
:
'center'
,
}}
>
<
/View
>
<
TouchableOpacity
>
<
FAB
>
<
Text
>
ListWork
<
/Text
>
<
SubButton
<
/TouchableOpacity
>
onPress
=
{()
=>
({})}
label
=
"Tạo công việc"
images
=
{
R
.
images
.
icMenuEdit
}
backgroundColor
=
{
R
.
colors
.
blue
}
/
>
<
/FAB
>
<
/View
>
<
/View
>
);
);
};
};
export
default
ListWorkView
;
export
default
ListWorkView
;
const
styles
=
StyleSheet
.
create
({})
\ No newline at end of file
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