-
Notifications
You must be signed in to change notification settings - Fork 3k
Agenda crashes with RN 0.78 #2610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Code example:
|
Same error |
I am also having the same issue |
any fix on this issue |
same here, any fix? |
I was messing around a little bit, and the issue seems to be coming from here in the
I think the problem is with the prevProps !== this.props check. I modified it slightly to test it out:
This initially fixes it when you are looking at the current week at the top, but when you switch to the full month selection that no longer works. So there is more that needs done or updated, or maybe i missed the true issue completely. I created a PR, with slightly updated coding. It looks the the other error I encountered is only on Android devices, and is there even in the current version on older version or RN as well. |
same issue, waiting the fix |
I got the same error. I've encountered various bugs with React 19 when using other packages, so it's safer to stick with the previous version for now. |
#2624 is a possible fix. Let's see what the team chooses to implement. |
is it fixed? |
There are at least 2 PR's with fixes. Let's see what WIX team will do about it. |
same issue |
It looks like they have released an update but still without the fix. |
Bump, @nitzanyiz can you take a look at the fix PRs? |
Same issue here |
I faced this same issue in RN@0.79.2, react-native-calender:1.1312.0, and I just added the below code in componentDidUpdate(prevProps) {
} Is this right? |
It is partially right. It does not crash anymore but you might discover that some changes are not propagated in the view. In the fix I suggested, I checked all the properties that are used in the component. |
@bmatasar - Thanks for your update. Or why are these changes not showing the latest react-native-calenders version? |
|
@bmatasar - I copied the componentDidUpdate code and pasted into my project. Here is the code. Please review if it is correct or not. componentDidUpdate(prevProps) { |
Open your project directory. Navigate to: Open index.js. Find the componentDidUpdate Method Search for componentDidUpdate in the file. Replace the Method with the Updated One Replace the existing componentDidUpdate with the following code: componentDidUpdate(prevProps) { |
You can use patch-package with the attached patch: |
@bmatasar and @neeleshyadav253 - Thanks |
react-native-calenders:1.1312.0 The onDayPress={(day) => {} method does not call a single press. It is working fine on iOS. video.mp4 |
I have the same issue as @gkasireddy202 onDayPress does get called, I can alert a success. This only happens to me on an older Android version (version 14) and in release mode, doesn't happen in development. I've tried a few other versions of react-native-calendars and get the same issue, also tried the patch. calendar.mp4 |
@Lewitje , @gkasireddy202 |
Here is the issue: |
Thanks @bmatasar ! Who is the publisher of this patch? Is there a PR where i can see the code changes? |
@shareef-dweikat - It's mentioned above |
After switching to RN 0.78, the
Agenda
component crashes with the infamousThe text was updated successfully, but these errors were encountered: