Open Retwix opened 3 years ago
Also seeing this issue with EXPO SDK 39 on an iPhone XS Max running 14.2
I had the same issue but in test env. Use Jest + Enzyme (do shallow rendering).
Warning: Failed prop type: Calendar: prop type style
is invalid; it must be a function, usually from the prop-types
package, but received undefined
.
I have the same probleme.
Same problem for expo SDK40
I have the same problem in expo sdk 40, please let me know if any workaround. Thanks
Same Problem in Expo SDK 40.
Same problem in expo SDK 40.
Same. Expo sdk 40.
I opened a PR to fix this issue here : https://github.com/wix/react-native-calendars/pull/1406
Is this still not fixed ? It seems your PR was closed in the profit of another, but I am not sure if it has in the scope the style warning fix.
Is this still not fixed ? It seems your PR was closed in the profit of another, but I am not sure if it has in the scope the style warning fix.
@kopax-polyconseil I do not work where I used to, sorry I can't help you. React Native Calendars is maintained at a super slow pace. I would suggest you fork the project and do the changes yourself and import your custom package directly from your own repo.
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
Hi, I have this big warning pop-up when I load my view with a Calendar component in it.
Warning: Failed prop type: Calendar: prop type
styleis invalid; it must be a function, usually from the
prop-typespackage, but received
undefined.
Expected Behavior
What action did you perform, and what did you expect to happen?
Observed Behavior
What actually happened when you performed the above actions?
If there's an error message, please paste the full terminal output and error message in this code block:
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-calendars
: /home/thibaultp/angel/angel-project/angelMobileApp └── react-native-calendars@1.593.0npm ls react-native
: /home/thibaultp/angel/angel-project/angelMobileApp └── UNMET PEER DEPENDENCY react-native@0.63.2npm ERR! peer dep missing: react-native@^0.47.2, required by react-native-asyncstorage@1.0.0
Also specify:
Reproducible Demo
Please provide a minimized reproducible demonstration of the problem you're reporting.
Issues that come with minimal repro's are resolved much more quickly than issues where a maintainer has to reproduce themselves.