mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46518 ## 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`. Changelog: [General][Fixed] Improved error message when no view config is found. DiffTrain build for commit https://github.com/facebook/react/commit/26855e4680dedb21f2c73a069ed691822a242db1. Test Plan: Sandcastle tests Reviewed By: jackpope Differential Revision: D62760863 Pulled By: javache fbshipit-source-id: c71dacc48fe8795b28840cfb3f53c1f9fc664a16