Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExpandableCalendar: Support for defaultProps will be removed from function components in a future major release #2569

Open
joelsonrocha opened this issue Dec 4, 2024 · 3 comments

Comments

@joelsonrocha
Copy link

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:

Also specify:

  1. Device/emulator/simulator & OS version: Android and IOS emulador, Android API 34 and IOS 17.5

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]

@auermatew
Copy link

!!!

@AbdaalRana
Copy link

any update on this issue and possible ways to fix it???

@thomas1204
Copy link

Any update on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants