mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
5ae53cc051
Summary: Enables two new experiments (and the current behaviour as default) to speed up access to TurboModule methods from JS. 1) HostObject - Current behaviour 2) Prototype - Connect the TM HostObject via `__proto__`, and cache any methods accessed on the wrapper object. 3) Eager - Eagerly store all methods on the wrapper object, do not expose the HostObject to JS at all (TurboModules no longer need to be HostObjects in this scenario) Changelog: [Internal] Reviewed By: JoshuaGross, rubennorte, mdvacca Differential Revision: D36590018 fbshipit-source-id: c9565eb239eb6aeee0f06b581ff8cd72a92073fc