mirror of
https://github.com/status-im/react-native.git
synced 2025-02-10 08:26:23 +00:00
Summary: Instead of two separate dispatches to the JavaScript thread, only do one. Avoid the strongSelf dance entirely. This refactor does mean that the cost of registering the nativeRequire hook on the context is not measured by the `RCTPLRAMBundleLoad` tag. However it should be almost zero-cost to construct and set a single block, so I'm OK with that change. Reviewed By: bnham Differential Revision: D3542940 fbshipit-source-id: d6bd26e478d0d33b56f8116d7efe6aac80c91711