Open kalyncoose opened 1 month ago
Hey! Thanks for opening the issue. Can you provide a minimal repro which demonstrates the issue? Posting a snippet of your code in the issue is useful, but it's not usually straightforward to run. A repro will help us debug the issue faster. Please try to keep the repro as small as possible. The easiest way to provide a repro is on snack.expo.dev. If it's not possible to repro it on snack.expo.dev, then you can also provide the repro in a GitHub repository.
Same issue here
Issue:
DatePickerInput
component starts to render but crashes when attempting to render theMonth
child component inside the 'Calendar'.Resolution: We noticed the
peerDependencies
forreact-native-paper
is an asterisk*
which is a bad idea for ensuring compatibility and letting end users know what version they should be using at a minimum. We upgradedreact-native-paper
from5.3.1
to5.12.3
which resolved the rendering issue - now theDatePickerInput
can fully render and load the calendar (albeit pretty slow in a debug mode app). Side note: when upgrading to the newreact-native-paper
version we had to change an import ofProvider
toPaperProvider
forreact-native-paper
.https://github.com/web-ridge/react-native-paper-dates/blob/9da295e919c3b4c68ee01b3770dda6646a34b873/package.json#L87
Suggestion: Please put down actual version numbers instead of asterisks for the peer dependencies of this package.