question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invisible Past Calendars in <CalendarList />

See original GitHub issue

Description

When using the <CalendarList/> example code, scrolling to the past results in blank/empty spots where past calendars should be. These ‘invisible calendars’ are annotated in the graphic below. They’re also shown in the following gif: https://i.imgur.com/Z8eNbtk.gif

Invisible Past Calendars

Expected Behavior

Upon scrolling to the past, I expect to see past calendars (not blank-spots). Per the docs, we should see 50 past calendars by default (or however many are set via the pastScrollingRange prop).

Observed Behavior

In the following gif, <CalendarList/> is being scrolled to past and future. Blank-spots can be seen appearing where past months (August 2017, July 2017, June 2017, etc…) should be: https://i.imgur.com/Z8eNbtk.gif

Explicitly setting the pastScrollRange={....} prop does not alleviate this issue and only limits the number of blank-spots which are present.

Environment

  • react-native-calendars@1.6.2
  • react-native@0.48.3
  • Emulated Pixel XL on android@8.0.0

Reproducible Demo

See the official use case example: https://github.com/wix/react-native-calendars#calendarlist

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
SpongeBobSuncommented, Nov 29, 2017

Just solved a similar issue.

For those who suffered the same issue, please check whether your animation is blocking the main thread, which will result in the scrollview stop rendering. Try to put your animation block in InteractionManager.runAfterInteractions

1reaction
jsaguiarcommented, Mar 6, 2018

@waisbek take a look to your animations, specify Infinite loops.

When an animation is running, it can prevent VirtualizedList components from rendering more rows. If you need to run a long or looping animation while the user is scrolling through a list, you can use isInteraction: false in your animation’s config to prevent this issue. https://facebook.github.io/react-native/docs/animations.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

Show or hide a calendar on Mac - Apple Support
Show or hide a calendar's events: Select or deselect the calendar's checkbox in the Calendar list. Show or hide events from all calendars:...
Read more >
Make Past and non available dates invisible/gray-o...
I have a requirement in my project to Create a Cat Item in which I have to create date field which having the...
Read more >
CalendarList: list | Google Calendar
Returns the calendars on the user's calendar list. ... All entries deleted and hidden since the previous list request will always be in...
Read more >
Events are not visible in the calendar view - SharePointSapiens
Open the list settings of the calendar list, click on 'List name, description and navigation' and check if the 'Group calendar options' are...
Read more >
Access hidden Google calendars from CalendarApp?
Here's a snippet to get a hidden calendar by name: function getCalIdFromName(name) { var cals = Calendar.CalendarList.list({showHidden:true, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found