react-native-paper-dates icon indicating copy to clipboard operation
react-native-paper-dates copied to clipboard

Render Error for DatePickerInput component: "Check the render method of 'Month'"

Open kalyncoose opened this issue 8 months ago • 5 comments

Issue: DatePickerInput component starts to render but crashes when attempting to render the Month child component inside the 'Calendar'.

image

Resolution: We noticed the peerDependencies for react-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 upgraded react-native-paper from 5.3.1 to 5.12.3 which resolved the rendering issue - now the DatePickerInput can fully render and load the calendar (albeit pretty slow in a debug mode app). Side note: when upgrading to the new react-native-paper version we had to change an import of Provider to PaperProvider for react-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.

kalyncoose avatar May 30 '24 23:05 kalyncoose