computerjazz / react-native-swipe-calendar

A swipeable calendar component for React Native.
MIT License
108 stars 13 forks source link

Months overlapping each other #1

Closed thecoorum closed 2 years ago

thecoorum commented 2 years ago

Hello and thank you for the nice lib!

Description

I noticed a bug when sometimes on render months are overlapping each other like on the screenshot

Update

As a resolution I used custom components for everything with the background the same as container background Also seems like the month ago is displayed first

Expected

Months are rendering as they should, single in view

Media

IMG_E849545BBC41-1

https://user-images.githubusercontent.com/32096016/152058497-09230ee5-52db-4c2a-95a8-0152e914c31e.MP4

computerjazz commented 2 years ago

Hm my guess is that this is a reanimated issues where initial values aren't being respected. There are several open issues around it:

What version of reanimated are you on?

computerjazz commented 2 years ago

ok i just pushed a workaround that hopefully fixes the race condition 🤞 can you try v 0.0.18?

thecoorum commented 2 years ago

Yeah, that worked! Thanks a lot!