export function DayEntry({ date, style, ...otherProps }: Props) { // const…
- User
export function DayEntry({ date, style, ...otherProps }: Props) { // const backgroundColor = useThemeColor(); return <View style={[{ padding: 20 }, style]} {...otherProps}> { date.toLocaleDateString() } <ThemedText onPress={() => alert('lol fatass want his free donut')}> One free pastry at buckeye donuts Location, Duration, Likes, Dislikes, Comments }
<DayEntry date={date} style={{ alignItems: 'center', backgroundColor: 'orange' }}> What's free tonight? {date.toLocaleDateString()}
Im not seeing the What's free tonight section
- Assistant
The issue you're encountering stems from how you're rendering the
<DayEntry>component. In your JSX, you are placing children inside<DayEntry>, but the<DayEntry>component itself does not handle and display these children. Instead, it only displays its own static content.To render the children passed to
<DayEntry>properly, you need to include{children}inside the<DayEntry>component. Here's how you can modify the<DayEntry>component to allow this: