반응형
Error: Text strings must be rendered within a <Text> component.
for (let d = 1; d <= monthDays; d++) {
const date = new Date(currentMonth.getFullYear(), currentMonth.getMonth(), d);
const isToday = today.toDateString() === date.toDateString();
dayViews.push(
<Pressable
key={`day-${d}`}
style={styles.dayItem}
onPress={() => setSelectedDate(date)}
>
<View>
<Text style={isToday ? [getDayStyle(d), styles.today] : getDayStyle(d)}>{d}</Text>
</View>
</Pressable>
);
}
<Text> 컨포넌트가 있어야 한다!
반응형
'Error' 카테고리의 다른 글
마리아 데이터베이스에 UTF-8 인코딩이 제대로 설정되지 않아 발생하는 문제 (0) | 2024.08.13 |
---|---|
[스프링부트-에러] Request method 'DELETE' is not supported @DeleteMapping (0) | 2024.01.26 |
파이널 프로젝트 에러 (0) | 2023.08.11 |
[에러정리] spring - 게시글 수정 (0) | 2023.04.24 |