Skip to content

Commit cd8e4f3

Browse files
committed
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
1 parent ec0ea94 commit cd8e4f3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

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

33
const SafeAreaView = View;
44

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

0 commit comments

Comments
 (0)