Commit ff89d354 authored by Choi Ga Young's avatar Choi Ga Young
Browse files

머지에러해결

parent facb1bb1
...@@ -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 DetailInfo from './DetailInfo'; import CalDetail from './CalDetail';
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="DetailInfo" name="CalDetail"
component={DetailInfo} component={CalDetail}
options={{ title: "일일내역" }} /> options={{ title: "일일내역" }} />
<Stack.Screen <Stack.Screen
name="EditOption" name="EditOption"
......
...@@ -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'
} }
}); });
......
...@@ -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",
......
...@@ -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)
......
...@@ -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('DetailInfo', String(item.date.toJSON()).split(/T/)[0])} flatListHeight={flatListHeight / (Dates.length / 7)} /> <DateItem dateitem={item} textColor={{ color }} onPress={() => navigation.navigate('CalDetail', String(item.date.toJSON()).split(/T/)[0])} flatListHeight={flatListHeight / (Dates.length / 7)} />
) )
} }
const prevBtn = () => { const prevBtn = () => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment