mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
4b82922ac5
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46788 Changelog: [internal] This fixes the reported keys for C++ TurboModules: ``` import MyNativeCppModule from 'MyNativeCppModule'; Object.keys(MyNativeCppModule); // [] - expected Object.keys(Object.getPrototypeOf(MyNativeCppModule)); // [] - NOT expected ``` Before, we were trying to read the properties from the method map in the public `TurboModule`, but in this implementation all the logic is actually in its delegate (also a `TurboModule` instance, yeah, confusing). This fixes the issue by forwarding the call to the delegate that has the right information. Reviewed By: javache Differential Revision: D63761381 fbshipit-source-id: 90bd216efa0f60352c5ca341d210d83239c80dba