From c316bb5dd034e3902e90013ead9a7ed2aff028ee Mon Sep 17 00:00:00 2001 From: rory Date: Wed, 29 Apr 2026 11:03:32 -0700 Subject: [PATCH] fix(web, SafeAreaView): replace default export with named export The safe-area/index.ts re-exports SafeAreaView as a named export: export { SafeAreaView } from './SafeAreaView'; For web builds, webpack resolves './SafeAreaView' to './SafeAreaView.web.tsx', which only had a default export, causing a ModuleDependencyWarning at build time since the named export 'SafeAreaView' could not be found. The native variant (SafeAreaView.tsx) only has a named export, and the package's public surface only re-exports as named, so align the web variant to match by replacing the default export with a named export. Co-authored-by: Cursor --- src/components/safe-area/SafeAreaView.web.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/safe-area/SafeAreaView.web.tsx b/src/components/safe-area/SafeAreaView.web.tsx index aff03a5f15..4b42091718 100644 --- a/src/components/safe-area/SafeAreaView.web.tsx +++ b/src/components/safe-area/SafeAreaView.web.tsx @@ -2,4 +2,4 @@ import { View } from 'react-native'; const SafeAreaView = View; -export default SafeAreaView; +export { SafeAreaView };