Closed nagesh-bv closed 2 years ago
As I debug it and found that this.rlv is coming undefined
Can confirm, same thing happening in my app. My home screen contains react-native-calendar-strip and when I change some file which reloads the whole app this is happening. If i make some smaller change which reloads only home screen then it is working fine. Also this is happening in versions 2.2.3 and 2.2.2. In version 2.2.1 everything is OK.
@majugurci
got the same problem today with version 2.2.4
Downgrading to 2.2.1 fixed the issue
Thanks
Yup, in 2.2.2, a change was made to add a scrollToDate on componentDidUpdate. If the component props change before the itemHeight is calculated, this.rlv will not be defined yet. See https://github.com/BugiDev/react-native-calendar-strip/compare/2.2.1...2.2.2
Rolling back to 2.2.1 will work-around until a fix is made.
Possible fixe: Add null check for this.rlv in this.scrollToDate
Please create a PR that checks for this.rlv
. Thanks for debugging this issue.
Please create a PR that checks for
this.rlv
. Thanks for debugging this issue.
I have fixed the issue and created PR accept it
Fix published in 2.2.6
Thanks @adamgajzlerowicz and everyone who contributed to this fix
Hi there, Im facing this issue with the following version: "react-native-calendar-strip": "^2.2.3"
Thank you.