Commit f28f7d8
authored
fix: resolve native SafeAreaProvider via exports map (#279)
The ./components/* wildcard in the exports map resolved
env(safe-area-inset-*) to the web passthrough file (.tsx) instead
of the native wrapper (.native.tsx) that injects CSS variables via
SafeAreaEnv. Metro treats exports-resolved paths as final and does
not apply platform-suffix resolution.
Add an explicit exports entry for
./components/react-native-safe-area-context that maps the
react-native condition to .native.tsx, and add a SafeAreaProvider
convenience re-export consistent with the component naming pattern
used by View, Text, etc.
Enable the previously skipped env(safe-area-inset-*) test.1 parent 499711c commit f28f7d8
File tree
3 files changed
+15
-5
lines changed- src
- __tests__/native
- components
3 files changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
50 | 62 | | |
51 | 63 | | |
52 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments