mirror of
https://github.com/status-im/react-native.git
synced 2025-02-23 14:48:25 +00:00
Summary: Second attempt at landing D9930713. Notes about the previous issue is mentioned as an inline comment below. =========== We are currently iterating through each view manager to get its class name to pass to JS. JS uses this list to define lazy property accesses for each view manager to grab the constants synchronously. This results in each view manager's class loading immediately -- causing a small perf hit. Let's avoid this view managers list entirely. JS is able to access each view manager directly by calling getConstantsForViewManager(name) Reviewed By: axe-fb Differential Revision: D10118711 fbshipit-source-id: 78de8f34db364a64f5ce6af70e3d8691353b0d4d