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

ios Safe Area is Not Working in the model

オープン
#677 コメント 12 件 リアクション 11 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
2.8k
フォーク
258
平均マージ
3日 1時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。