wix / react-native-calendars

React Native Calendar Components 🗓️ 📆
MIT License
9.52k stars 2.95k forks source link

Calendar stays half open and knob stops working (Agenda View) #278

Open escobar5 opened 6 years ago

escobar5 commented 6 years ago

Description

When using Agenda View, sometimes the calendar stays open and the knob stops working, there is no way to hide or completely open the calendar again. Also if a day of the calendar is clicked, the agenda view refreshes, but the calendar stays half opened.

Expected Behavior

The calendar should stay closed, or open, and the knob should work.

Observed Behavior

This happens sometimes when we navigate to a different page, open the keyboard on that page, close it, and come back to the page where the calendar is.

This is a screenshot of the calendar when the problem occurs:

screenshot_20171221-170424

Environment

react-native-calendars@1.16.1 react@16.0.0-alpha.12 react-native@0.48.1

Also specify:

  1. Phone/emulator/simulator & version:

Phone and Emulator Android 6.0 / Android 8.1

tautvilas commented 6 years ago

What kind of navigation solution do you use?

escobar5 commented 6 years ago

I'm using "react-native-router-flux": "^4.0.0-beta.24" that's based on React Navigation

igorarkhipenko commented 6 years ago

Got similar behavior when state is updated before animation's end. Seems like an agenda can't handle properly additional rerender at this time. I also use rnrf, but don't think it is the reason in this case. jan-30-2018 20-54-45

d4mr commented 3 years ago

Any updates on this? I am also facing this issue.

samsonroymaben commented 2 years ago

Any solution on this ? @Inbal-Tish

Inbal-Tish commented 2 years ago

@samsonroymaben @d4mr I can't reproduce this bug. You're welcome to submit a PR with a fix or provide an expo snack with the buggy scenario so I can review the code from there...