Files
react-native/packages
Pieter De Baets f3977afb77 Do not eagerly allocate all view managers in DefaultReactNativeHost (#42869)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/42869

`DefaultReactNativeHost` builds a `ViewManagerRegistry` based on a list of ViewManagers, which is inefficient, as we have to allocate them all ahead of time (defeating the purpose of `ViewManagerOnDemandReactPackage`). Instead provide a `ViewManagerResolver`which lazily resolves them.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D53406841

fbshipit-source-id: be8437e2127fb6741d1948cecbcf5c3d9f8de268
2024-02-05 05:44:32 -08:00
..