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
ff89d354
Commit
ff89d354
authored
Aug 04, 2021
by
Choi Ga Young
Browse files
머지에러해결
parent
facb1bb1
Changes
5
Hide whitespace changes
Inline
Side-by-side
App.js
View file @
ff89d354
...
@@ -8,7 +8,7 @@ import Monthly from './Monthly';
...
@@ -8,7 +8,7 @@ import Monthly from './Monthly';
import
Analy
from
'
./Analy
'
;
import
Analy
from
'
./Analy
'
;
import
PostMoney
from
'
./PostMoney
'
;
import
PostMoney
from
'
./PostMoney
'
;
import
MainScreen
from
'
./MainScreen
'
;
import
MainScreen
from
'
./MainScreen
'
;
import
Detail
Info
from
'
./Detail
Info
'
;
import
Cal
Detail
from
'
./
Cal
Detail
'
;
import
DeptPage
from
'
./DeptPage
'
;
import
DeptPage
from
'
./DeptPage
'
;
import
DeptDetails
from
'
./screens/DeptDetails
'
;
import
DeptDetails
from
'
./screens/DeptDetails
'
;
import
MemoPage
from
'
./MemoPage
'
;
import
MemoPage
from
'
./MemoPage
'
;
...
@@ -82,8 +82,8 @@ function App() {
...
@@ -82,8 +82,8 @@ function App() {
component
=
{
MemoDetails
}
component
=
{
MemoDetails
}
options
=
{{
title
:
"
상세내용
"
}}
/
>
options
=
{{
title
:
"
상세내용
"
}}
/
>
<
Stack
.
Screen
<
Stack
.
Screen
name
=
"
Detail
Info
"
name
=
"
Cal
Detail
"
component
=
{
Detail
Info
}
component
=
{
Cal
Detail
}
options
=
{{
title
:
"
일일내역
"
}}
/
>
options
=
{{
title
:
"
일일내역
"
}}
/
>
<
Stack
.
Screen
<
Stack
.
Screen
name
=
"
EditOption
"
name
=
"
EditOption
"
...
...
Detail
Info
.js
→
Cal
Detail.js
View file @
ff89d354
...
@@ -48,7 +48,7 @@ const DetailInfo = ({ route }) => {
...
@@ -48,7 +48,7 @@ const DetailInfo = ({ route }) => {
renderItem
=
{
renderDetail
}
renderItem
=
{
renderDetail
}
keyExtractor
=
{
item
=>
item
.
id
}
keyExtractor
=
{
item
=>
item
.
id
}
/> : <View style={{ marginTop: "20%" }}
>
/> : <View style={{ marginTop: "20%" }}
>
<
Text
style
=
{{
textAlign
:
"
center
"
,
fontSize
:
20
}}
>
내역이
없습니다
.
<
/Text
>
<
Text
style
=
{{
textAlign
:
"
center
"
,
fontSize
:
20
,
fontFamily
:
'
GowunDodum-Regular
'
}}
>
내역이
없습니다
.
<
/Text
>
<
/View
>
<
/View
>
}
}
...
@@ -69,10 +69,12 @@ const style = StyleSheet.create({
...
@@ -69,10 +69,12 @@ const style = StyleSheet.create({
},
},
itemTextNum
:
{
itemTextNum
:
{
flex
:
1
,
flex
:
1
,
textAlign
:
"
center
"
textAlign
:
"
center
"
,
fontFamily
:
'
GowunDodum-Regular
'
},
},
itemText
:
{
itemText
:
{
flex
:
1
flex
:
1
,
fontFamily
:
'
GowunDodum-Regular
'
}
}
});
});
...
...
MainScreen.js
View file @
ff89d354
...
@@ -74,7 +74,6 @@ function MainScreen({ navigation }) {
...
@@ -74,7 +74,6 @@ function MainScreen({ navigation }) {
)
)
}
}
const
style
=
StyleSheet
.
create
({
const
style
=
StyleSheet
.
create
({
TextInput
:
{
TextInput
:
{
borderColor
:
'
skyblue
'
,
borderColor
:
'
skyblue
'
,
...
@@ -83,7 +82,7 @@ const style = StyleSheet.create({
...
@@ -83,7 +82,7 @@ const style = StyleSheet.create({
borderWidth
:
1
borderWidth
:
1
},
},
Font
:
{
Font
:
{
fontFamily
:
'
Jua
-Regular
'
,
fontFamily
:
'
GowunDodum
-Regular
'
,
fontSize
:
24
fontSize
:
24
},
},
modalToggle
:
{
modalToggle
:
{
...
@@ -100,7 +99,7 @@ const style = StyleSheet.create({
...
@@ -100,7 +99,7 @@ const style = StyleSheet.create({
marginBottom
:
50
,
marginBottom
:
50
,
},
},
modalContent
:
{
modalContent
:
{
flex
:
1
,
//이후 유용한 키보드를 추가하려고 ex)dismissing keyboard
flex
:
1
,
},
},
Contents
:
{
Contents
:
{
justifyContent
:
"
center
"
,
justifyContent
:
"
center
"
,
...
...
MemoPage.js
View file @
ff89d354
...
@@ -2,14 +2,9 @@ import React, { useEffect, useState } from 'react';
...
@@ -2,14 +2,9 @@ import React, { useEffect, useState } from 'react';
import
{
StyleSheet
,
Text
,
View
,
FlatList
,
TouchableOpacity
,
Modal
,
TouchableWithoutFeedback
,
Keyboard
}
from
'
react-native
'
;
import
{
StyleSheet
,
Text
,
View
,
FlatList
,
TouchableOpacity
,
Modal
,
TouchableWithoutFeedback
,
Keyboard
}
from
'
react-native
'
;
import
TodoItem
from
'
./components/TodoItem
'
;
import
TodoItem
from
'
./components/TodoItem
'
;
import
Ionicons
from
'
react-native-vector-icons/Ionicons
'
;
import
Ionicons
from
'
react-native-vector-icons/Ionicons
'
;
import
{
NavigationContainer
}
from
'
@react-navigation/native
'
;
import
MemoDetails
from
'
./screens/MemoDetails
'
;
import
MemoForm
from
'
./screens/MemoForm
'
;
import
MemoForm
from
'
./screens/MemoForm
'
;
import
ButtonsForm
from
'
./components/ButtonsForm
'
;
import
{
TabView
}
from
'
react-native-elements
'
;
import
memoApi
from
'
./db/memoPage.api
'
;
import
memoApi
from
'
./db/memoPage.api
'
;
function
MemoPage
({
navigation
})
{
function
MemoPage
({
navigation
})
{
const
[
memos
,
setMemos
]
=
useState
([])
const
[
memos
,
setMemos
]
=
useState
([])
const
[
selectedIndex
,
setSelectedIndex
]
=
useState
(
0
)
const
[
selectedIndex
,
setSelectedIndex
]
=
useState
(
0
)
...
...
components/Calendar.js
View file @
ff89d354
...
@@ -2,7 +2,6 @@ import React, { useState, useEffect } from 'react';
...
@@ -2,7 +2,6 @@ import React, { useState, useEffect } from 'react';
import
{
SafeAreaView
,
StyleSheet
,
View
,
Text
,
FlatList
,
TouchableOpacity
}
from
'
react-native
'
;
import
{
SafeAreaView
,
StyleSheet
,
View
,
Text
,
FlatList
,
TouchableOpacity
}
from
'
react-native
'
;
import
{
Button
}
from
'
react-native-elements
'
;
import
{
Button
}
from
'
react-native-elements
'
;
import
Ionicons
from
'
react-native-vector-icons/Ionicons
'
;
import
Ionicons
from
'
react-native-vector-icons/Ionicons
'
;
import
DetailInfo
from
'
../DetailInfo
'
;
const
DateItem
=
({
dateitem
,
textColor
,
onPress
,
flatListHeight
})
=>
{
const
DateItem
=
({
dateitem
,
textColor
,
onPress
,
flatListHeight
})
=>
{
return
(
return
(
...
@@ -105,7 +104,7 @@ function Calendar({
...
@@ -105,7 +104,7 @@ function Calendar({
}
}
return
(
return
(
<
DateItem
dateitem
=
{
item
}
textColor
=
{{
color
}}
onPress
=
{()
=>
navigation
.
navigate
(
'
Detail
Info
'
,
String
(
item
.
date
.
toJSON
()).
split
(
/T/
)[
0
])}
flatListHeight
=
{
flatListHeight
/
(
Dates
.
length
/
7
)}
/
>
<
DateItem
dateitem
=
{
item
}
textColor
=
{{
color
}}
onPress
=
{()
=>
navigation
.
navigate
(
'
Cal
Detail
'
,
String
(
item
.
date
.
toJSON
()).
split
(
/T/
)[
0
])}
flatListHeight
=
{
flatListHeight
/
(
Dates
.
length
/
7
)}
/
>
)
)
}
}
const
prevBtn
=
()
=>
{
const
prevBtn
=
()
=>
{
...
...
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