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

Question regarding web SafeAreaProvider `View` usage

オープン
#637 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
2.8k
フォーク
258
平均マージ
3日 1時間
マージ済み PR(30日)
2

説明

In this file, we have a `View`:

https://github.com/AppAndFlow/react-native-safe-area-context/blob/main/src/NativeSafeAreaProvider.web.tsx#L63

However, this was causing headaches with a web project of mine, seeing as the safe area context is provided at the root of a screen via `ExpoRoot`:

https://github.com/expo/expo/blob/fcebecf0d92682f81b50c7f0f1620f8ef9e4ebcb/packages/expo-router/src/ExpoRoot.tsx#L66-L72

And ultimately caused headaches in debugging a web app of mine:

https://x.com/crutchcorn/status/1930061117008519445

I don't see a reason why we'd need this `View` on web. Could we simply replace it with a `Fragment` instead? I'd be happy to make a PR for this

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。