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

Question regarding web SafeAreaProvider `View` usage

未關閉
#637 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
2.8k
分支
258
平均合併
3 天 1 小時
30 天內合併 PR
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 摘要。