AppAndFlow/react-native-safe-area-context

insets.top switching to 0 during iPad orientation change

Open

#485 建立於 2024年3月27日

在 GitHub 查看
 (27 留言) (2 反應) (0 負責人)TypeScript (249 fork)github user discovery
Platform: iOShelp wanted

倉庫指標

Star
 (2,727 star)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南