DetailInfo.js 813 Bytes
Newer Older
Choi Ga Young's avatar
Choi Ga Young committed
1
2
3
import React from 'react';
import { View, Text, StyleSheet } from 'react-native';

Choi Ga Young's avatar
Choi Ga Young committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const DetailInfo = ({ route }) => {
  console.log('route', route.params)
  console.log('---------------------------')
  return (
    <>
      <View style={{ padding: '10%' }}>
        <Text style={style.Font}>수입</Text>
        <Text style={{ color: '#1E90FF' }}>{route.params?.input}</Text>
        <Text>수입 내역들을 보여줄 예정입니다.</Text>
      </View>
      <View style={{ padding: '10%' }}>
        <Text style={style.Font}>지출</Text>
        <Text style={{ color: '#DC143C' }}>{route.params?.output}</Text>
        <Text>지출 내역들을 보여줄 예정입니다.</Text>
      </View>
    </>

Choi Ga Young's avatar
Choi Ga Young committed
21
22
23
24
  )
}
const style = StyleSheet.create({
  Font: {
Choi Ga Young's avatar
Choi Ga Young committed
25
    fontSize: 24
Choi Ga Young's avatar
Choi Ga Young committed
26
27
28
29
  }
});

export default DetailInfo;