React-native-calendars: Custom day component state is undefined

Created on 9 Feb 2021  路  5Comments  路  Source: wix/react-native-calendars

Description

I get undefined when trying to implement custom day component

Expected Behavior

dayComponent={({date, state}) => {
return (

{date.day}


);
}}

Observed Behavior

state === undefined

Environment

Please run these commands in the project folder and fill in their results:

  • npm ls react-native-calendars: 1.1249.0
  • npm ls react-native : 0.63.4

Most helpful comment

Hi I have the same problem, the props "marking" is also undefined.

All 5 comments

+1

Hi I have the same problem, the props "marking" is also undefined.

same issue as in #1393
The patch in #1407 fixed it for me too

+1

+1

Was this page helpful?
0 / 5 - 0 ratings