Commit 4c48f1f
committed
[react-native] Fix misleading crash when view config is not found (#30970)
## Summary
When a view config can not be found, it currently errors with
`TypeError: Cannot read property 'bubblingEventTypes' of null`. Instead
invariant at the correct location and prevent further processing of the
null viewConfig to improve the error logged.
## How did you test this change?
Build and run RN playground app referencing an invalid native view
through `requireNativeComponent`.
DiffTrain build for commit 26855e4.1 parent 4c73996 commit 4c48f1f
File tree
15 files changed
+49
-50
lines changed- compiled-rn
- facebook-fbsource/xplat/js
- RKJSModules/vendor/react
- react-test-renderer/cjs
- react/cjs
- react-native-github/Libraries/Renderer
- implementations
- shims
15 files changed
+49
-50
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
15131 | 15131 | | |
15132 | 15132 | | |
15133 | 15133 | | |
15134 | | - | |
| 15134 | + | |
15135 | 15135 | | |
15136 | 15136 | | |
15137 | 15137 | | |
15138 | | - | |
| 15138 | + | |
15139 | 15139 | | |
15140 | 15140 | | |
15141 | 15141 | | |
| |||
15280 | 15280 | | |
15281 | 15281 | | |
15282 | 15282 | | |
15283 | | - | |
| 15283 | + | |
15284 | 15284 | | |
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
9494 | 9494 | | |
9495 | 9495 | | |
9496 | 9496 | | |
9497 | | - | |
| 9497 | + | |
9498 | 9498 | | |
9499 | 9499 | | |
9500 | 9500 | | |
9501 | 9501 | | |
9502 | 9502 | | |
9503 | 9503 | | |
9504 | | - | |
| 9504 | + | |
9505 | 9505 | | |
9506 | 9506 | | |
9507 | 9507 | | |
| |||
9637 | 9637 | | |
9638 | 9638 | | |
9639 | 9639 | | |
9640 | | - | |
| 9640 | + | |
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
10066 | 10066 | | |
10067 | 10067 | | |
10068 | 10068 | | |
10069 | | - | |
| 10069 | + | |
10070 | 10070 | | |
10071 | 10071 | | |
10072 | 10072 | | |
10073 | 10073 | | |
10074 | 10074 | | |
10075 | 10075 | | |
10076 | | - | |
| 10076 | + | |
10077 | 10077 | | |
10078 | 10078 | | |
10079 | 10079 | | |
| |||
10224 | 10224 | | |
10225 | 10225 | | |
10226 | 10226 | | |
10227 | | - | |
| 10227 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
1705 | 1705 | | |
1706 | 1706 | | |
1707 | 1707 | | |
1708 | | - | |
| 1708 | + | |
1709 | 1709 | | |
1710 | 1710 | | |
1711 | 1711 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
| 583 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | | - | |
| 587 | + | |
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
17180 | 17180 | | |
17181 | 17181 | | |
17182 | 17182 | | |
17183 | | - | |
| 17183 | + | |
17184 | 17184 | | |
17185 | 17185 | | |
17186 | 17186 | | |
17187 | | - | |
| 17187 | + | |
17188 | 17188 | | |
17189 | 17189 | | |
17190 | 17190 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
11085 | 11085 | | |
11086 | 11086 | | |
11087 | 11087 | | |
11088 | | - | |
| 11088 | + | |
11089 | 11089 | | |
11090 | 11090 | | |
11091 | 11091 | | |
11092 | | - | |
| 11092 | + | |
11093 | 11093 | | |
11094 | 11094 | | |
11095 | 11095 | | |
| |||
0 commit comments