appandflow / appandflow/react-native-safe-area-context

insets.top switching to 0 during iPad orientation change

未关闭
#485 27 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
help wanted Platform: iOS
主要语言
TypeScript
星标
2.8k
派生
258
平均合并
3 天 1 小时
30 天内合并 PR
2

描述

On iPad, `insets.top` changes during an orientation change from X to 0 and back to X, causing the app to re-render and recalculate layouts back and forth.

This only happens when going from landscape to portrait.
I've opened a related issue on RN-navigation: https://github.com/react-navigation/react-navigation/issues/11915

EDIT:
insets.top changes from landscape to portrait to 0
insets.bottom changes from portrait to landscape to 0

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。