components/AddTodo.js
import React, {useState} from 'react'; import { View, StyleSheet, TextInput, Image, TouchableOpacity, } from 'react-native'; function () { const [text, setText] = (''); return ( <View style={styles.block}> <TextInput placeholder="할일을 입력하세요." style={styles.input} value={text} onChangeText={setText} /> <TouchableOpacity activeOpacity={0.5}> <View style={styles.buttonStyle}> <Image source={ ('../assets/icons/add_white/add_white.png')} /> </View> </TouchableOpacity> </View> ); } (...)