import React, { useState } from 'react'; import { StyleSheet, View, Text, TextInput, Button } from 'react-native'; import { NavigationContainer } from '@react-navigation/native'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import Ionicons from 'react-native-vector-icons/Ionicons'; import Monthly from './Monthly'; // import Analy from './Analy'; import Calendar from './Calendar'; import PostMoney from './PostMoney'; import InsertCat from './InsertCat'; function MainScreen({ navigation }) { const [number, onChangeNumber] = useState(null) const [totalAssets, setTotalAssets] = useState(0) //총 자산 return ( <> 주간 캘린더 들어올 자리 총 자산 {totalAssets}원 입력한 숫자 보기: {number}