

When open a screen with a calendar, sometimes the position of the selected date does not correctly stand.
After some research I figured out that SafeAreaView caused the problem. It fired onLayout event where it was unnecessary, so I just removed one and it works well now. (in my case react-navigation handles safe area automatically)
If that does not help - try to look in src/agenda/index.js, there is calendarOffset function, I added my own offset prop there to fix same problem on iPhone 8 plus.
@ilya-raevskiy Hi. If this is a bug report please follow the instructions here so we can investigate.
Is there any fix version here?
经过研究,我发现是SafeAreaView引起了问题。它在不需要的情况下触发了onLayout事件,因此我刚刚删除了一个事件,现在效果很好。(在我的情况下,反应导航会自动处理安全区域)
如果那没有帮助-尝试查看src / agenda / index.js,有calendarOffset函数,我在那里添加了自己的偏移量道具,以解决iPhone 8 plus上的相同问题。
After some research I figured out that SafeAreaView caused the problem. It fired onLayout event where it was unnecessary, so I just removed one and it works well now. (in my case react-navigation handles safe area automatically)
If that does not help - try to look in src/agenda/index.js, there is calendarOffset function, I added my own offset prop there to fix same problem on iPhone 8 plus.
Hello,Could you show me your code about this problem?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
After some research I figured out that SafeAreaView caused the problem. It fired onLayout event where it was unnecessary, so I just removed one and it works well now. (in my case react-navigation handles safe area automatically)
If that does not help - try to look in src/agenda/index.js, there is calendarOffset function, I added my own offset prop there to fix same problem on iPhone 8 plus.