Skip to content

Commit c316bb5

Browse files
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 <[email protected]>
1 parent ec0ea94 commit c316bb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/safe-area/SafeAreaView.web.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import { View } from 'react-native';
22

33
const SafeAreaView = View;
44

5-
export default SafeAreaView;
5+
export { SafeAreaView };

0 commit comments

Comments
 (0)