Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
rich-maker
Commits
d7f659a4
Commit
d7f659a4
authored
Aug 10, 2021
by
YoonDongMin
Browse files
0810DM
parent
b8bc934a
Changes
3
Hide whitespace changes
Inline
Side-by-side
MainScreen.js
View file @
d7f659a4
...
...
@@ -9,6 +9,7 @@ import DeptPage from './DeptPage';
import
weekApi
from
'
./db/mainScreen.api
'
;
import
{
getDateStr
}
from
'
./utils/dateFunction
'
;
const
DetailItem
=
({
item
})
=>
{
return
(
<>
...
...
@@ -132,12 +133,12 @@ function MainScreen({ navigation }) {
onClose
=
{()
=>
setOpen
(
!
open
)}
>
<
SpeedDial
.
Action
icon
=
{
{
name
:
'
add
'
,
color
:
'
#fff
'
}}
icon
=
{
<
FontAwesome
name
=
{
'
money
'
}
size
=
{
20
}
color
=
{
'
#fff
'
}
/>
}
title
=
"
부채
"
onPress
=
{()
=>
navigation
.
navigate
(
'
DeptPage
'
)}
/
>
<
SpeedDial
.
Action
icon
=
{{
name
:
'
add
'
,
color
:
'
#fff
'
}}
icon
=
{{
name
:
'
note
'
,
color
:
'
#fff
'
}}
title
=
"
메모
"
onPress
=
{()
=>
navigation
.
navigate
(
'
MemoPage
'
)}
/
>
...
...
screens/DeptDetails.js
View file @
d7f659a4
import
React
,
{
useEffect
,
useState
}
from
'
react
'
;
import
{
StyleSheet
,
View
,
TouchableWithoutFeedback
,
Keyboard
}
from
'
react-native
'
;
import
{
StyleSheet
,
View
,
TouchableWithoutFeedback
,
Keyboard
,
LogBox
}
from
'
react-native
'
;
import
InputBox
from
'
../components/InputBox
'
;
import
StyledButton
from
'
../components/StyledButton
'
;
import
DatePicker
from
'
../components/DatePicker.js
'
;
import
deptApi
from
'
../db/deptPage.api
'
;
import
{
getDateStr
}
from
'
../utils/dateFunction
'
;
function
DeptDetails
({
route
,
navigation
})
{
const
{
item
,
loadLoan
}
=
route
.
params
const
getDates
=
()
=>
{
...
...
@@ -16,6 +17,7 @@ function DeptDetails({ route, navigation }) {
const
[
message
,
setMessage
]
=
useState
(
''
)
const
[
money
,
setMoney
]
=
useState
(
''
)
const
[
repayment
,
setRepayment
]
=
useState
(
''
)
LogBox
.
ignoreLogs
([
'
Non-serializable values were found in the navigation state
'
]);
useEffect
(()
=>
{
setDate
(
String
(
item
.
date
))
...
...
screens/MemoDetails.js
View file @
d7f659a4
import
React
,
{
useState
,
useEffect
}
from
'
react
'
;
import
{
StyleSheet
,
View
,
TouchableWithoutFeedback
,
Keyboard
}
from
'
react-native
'
;
import
{
StyleSheet
,
View
,
TouchableWithoutFeedback
,
Keyboard
,
LogBox
}
from
'
react-native
'
;
import
InputBox
from
'
../components/InputBox
'
;
import
StyledButton
from
'
../components/StyledButton
'
;
import
DatePicker
from
'
../components/DatePicker.js
'
;
import
memoApi
from
'
../db/memoPage.api
'
;
import
{
getDateStr
}
from
'
../utils/dateFunction
'
;
function
MemoDetails
({
route
,
navigation
})
{
const
{
item
,
loadMemos
}
=
route
.
params
const
getDates
=
()
=>
{
...
...
@@ -19,7 +21,7 @@ function MemoDetails({ route, navigation }) {
loadMemos
()
navigation
.
navigate
(
'
MemoPage
'
)
}
LogBox
.
ignoreLogs
([
'
Non-serializable values were found in the navigation state
'
]);
useEffect
(()
=>
{
setDate
(
String
(
item
.
date
))
setMessage
(
item
.
message
)
...
...
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