dillon1000/react

Commit

[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`.
Browse files
Changed paths1 file
First-parent comparison
M scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…