react-native/React/CxxBridge
Peter Argany 18f3de9dce Allow init of Native Module before bridge is initialized [2/N]
Summary:
This may be controversial.

Right now, RelayPrefetcher is initialized [here](https://fburl.com/p01iunr1), after bridge is initialized. I want to create a FBRelayPrefetcherModule instance eagerly (diff 3 in stack), and then pass that into the bridge module registry. This way, native side gets to use RelayPrefetcher before bridge is init, and JS still accesses the same instance of FBRelayPrefetcherModule.

The only other option is drastically change bridge init, to allow passing in some eagerly initialized instances.

Reviewed By: shergin

Differential Revision: D13164277

fbshipit-source-id: b45111cd68d78820e61e4fca7e54a7e8df32a3f0
2018-11-26 17:28:11 -08:00
..
NSDataBigString.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
NSDataBigString.mm Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTCxxBridge.mm Allow init of Native Module before bridge is initialized [2/N] 2018-11-26 17:28:11 -08:00
RCTCxxBridgeDelegate.h iOS changes to switch to JSI 2018-10-18 01:06:24 -07:00
RCTMessageThread.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTMessageThread.mm iOS changes to switch to JSI 2018-10-18 01:06:24 -07:00
RCTObjcExecutor.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTObjcExecutor.mm Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00