You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please make our job easier by filling this template out to completion. If you're requesting a feature instead of reporting a bug, please feel free to skip the Environment and Reproducible Demo sections.
Description
I encountered a warning in the react-native-calendars library when using the ExpandableCalendar component. The warning mentions that support for defaultProps will be removed in function components in a future major release.
Expected Behavior
Using the ExpandableCalendar component should not produce any warnings or deprecation notices.
Observed Behavior
The following warning appears in the console when the ExpandableCalendar component is rendered:
ERROR Warning: ExpandableCalendar: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
in ExpandableCalendar (created by ExpandableCalendarScreen)
in RCTView (created by View)
in View (created by CalendarProvider)
in CalendarProvider (created by ExpandableCalendarScreen)
in ExpandableCalendarScreen (created by ScheduleScreen)
in ScheduleScreen
in Unknown (created by Route(schedule))
in Suspense (created by Route(schedule))
in Route (created by Route(schedule))
in Route(schedule) (created by SceneView)
in StaticContainer
in EnsureSingleNavigator (created by SceneView)
in SceneView (created by NativeStackNavigator)
in RNSScreenContentWrapper (created by ScreenContentWrapper)
in ScreenContentWrapper (created by DebugContainer)
Environment
Please run these commands in the project folder and fill in their results:
We have the same unsolved problem in another publication, I'm deciding to publish it again, hoping someone can help us.
[https://github.com//issues/2455]
The text was updated successfully, but these errors were encountered:
Please make our job easier by filling this template out to completion. If you're requesting a feature instead of reporting a bug, please feel free to skip the Environment and Reproducible Demo sections.
Description
I encountered a warning in the react-native-calendars library when using the ExpandableCalendar component. The warning mentions that support for defaultProps will be removed in function components in a future major release.
Expected Behavior
Using the ExpandableCalendar component should not produce any warnings or deprecation notices.
Observed Behavior
The following warning appears in the console when the ExpandableCalendar component is rendered:
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-calendars
: [email protected]npm ls react-native
: [email protected]Also specify:
Reproducible Demo
I'm executing this example: https://github.com/wix/react-native-calendars/blob/master/example/src/screens/expandableCalendarScreen.tsx
Screenshots
We have the same unsolved problem in another publication, I'm deciding to publish it again, hoping someone can help us.
[https://github.com//issues/2455]
The text was updated successfully, but these errors were encountered: