Skip to content

Commit 39e08c4

Browse files
fix(web, SafeAreaView): add named export alongside default 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 has a default export. This causes a ModuleDependencyWarning at build time since the named export 'SafeAreaView' cannot be found. Add a named export to SafeAreaView.web.tsx so it is consistent with how it is imported throughout the package (e.g. in ScreenStackItem.tsx). Made-with: Cursor Co-authored-by: Cursor <[email protected]>
1 parent ec0ea94 commit 39e08c4

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)