Skip to content

fix(rn): improve safe area insets handling for Android during initialization#2531

Open
wangshunnn wants to merge 1 commit into
masterfrom
fix-master-safe-area-insets-top
Open

fix(rn): improve safe area insets handling for Android during initialization#2531
wangshunnn wants to merge 1 commit into
masterfrom
fix-master-safe-area-insets-top

Conversation

@wangshunnn

Copy link
Copy Markdown
Collaborator

Fix(RN)

  • 修复部分安卓机型初始渲染可能遇到的 useSafeAreaInsets()?.top 为 0 的问题,使用 initialWindowMetrics?.insets?.top 兜底。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant