import * as React from 'react'; import { useState } from 'react'; import { StyleSheet, View, Text, TextInput, Button, Keyboard, TouchableWithoutFeedback, Modal } 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 MoneyDB from './MoneyDB'; import ReviewForm from './screens/reviewForm'; function MainScreen({ navigation }) { const [number, onChangeNumber] = React.useState(null); const [modalOpen, setModalOpen] = useState(false); const [reviews, setReviews] = useState([ { title: 'aa', rating: 5, body: 'bb', key: '1' }, ]); const addReview = (review) => { review.key = Math.random().toString(); setReviews((currentReviews) => { return [review, ...currentReviews] }); setModalOpen(false); } return ( <> { Keyboard.dismiss(); }}> 여기는 메인 페이지 입니다. 아래는 input 테스트를 위한 것입니다. 입력한 숫자 보기: {number}