Commit cd8e4f3
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: Cursor1 parent ec0ea94 commit cd8e4f3
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
0 commit comments