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

insets.top switching to 0 during iPad orientation change

Open
#485 27 comments 2 reactions 0 assignees View on GitHub
help wanted Platform: iOS
Dominant language
TypeScript
Stars
2.8k
Forks
258
Avg merge
3d 1h
Merged PRs (30d)
2

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.