Skip to content

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

@kalyncoose

Description

@kalyncoose

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.

"react-native-paper": "*",

Suggestion:
Please put down actual version numbers instead of asterisks for the peer dependencies of this package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions