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

ios Safe Area is Not Working in the model

未關閉
#677 12 則留言 11 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
2.8k
分支
258
平均合併
3 天 1 小時
30 天內合併 PR
2

描述

### Description

Description

When rendering a inside a native React Native , safe area insets are not applied on iOS devices (e.g., notch or home indicator areas are ignored).

The same SafeAreaView works correctly when used in the main app tree.

Expected Behavior

SafeAreaView should respect safe area insets on iOS even when rendered inside a .

Actual Behavior

Insets are always 0 inside on iOS. The content touches the notch and bottom safe areas.

### Steps to reproduce

1. Wrap app with at the root.
2. Create a with a inside.
3. Render it on an iPhone with a notch.
4. Observe that there’s no padding at the top or bottom.

### Snack or a link to a repository

nope

### Safe Area Context version

5.6.2

### React Native version

0.81.5

### Platforms

iOS

### Build type

Debug mode

### Device

iOS simulator

### Device model

iphone 16 pro max

### Acknowledgements

Yes

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。