Commit c316bb5
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
0 commit comments