Remove experimental shouldBridgeInitializeNativeModulesSynchronously:
Differential Revision: D6124035 fbshipit-source-id: 540b8bfc955bf48e9ca33ed97807177ac740059e
This commit is contained in:
parent
a32e1cfffb
commit
ca85a536c6
|
@ -410,8 +410,6 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR
|
|||
// We better be on the right thread too.
|
||||
RCTAssertMainQueue();
|
||||
initializeImmediately = YES;
|
||||
} else if ([self.delegate respondsToSelector:@selector(shouldBridgeInitializeNativeModulesSynchronously:)]) {
|
||||
initializeImmediately = [self.delegate shouldBridgeInitializeNativeModulesSynchronously:self];
|
||||
}
|
||||
|
||||
// Set up modules that require main thread init or constants export
|
||||
|
|
|
@ -63,16 +63,6 @@
|
|||
*/
|
||||
- (BOOL)shouldBridgeLoadJavaScriptSynchronously:(RCTBridge *)bridge;
|
||||
|
||||
/**
|
||||
* When initializing native modules that require main thread initialization, the bridge
|
||||
* will default to dispatch module creation blocks asynchrously. If we're blockingly
|
||||
* waiting on the main thread to finish bridge creation on the main thread, this will
|
||||
* deadlock. Override this method to initialize modules synchronously instead.
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
- (BOOL)shouldBridgeInitializeNativeModulesSynchronously:(RCTBridge *)bridge;
|
||||
|
||||
/**
|
||||
* Configure whether the JSCExecutor created should use the system JSC API or
|
||||
* alternative hooks provided. When returning YES from this method, you must have
|
||||
|
|
|
@ -725,8 +725,6 @@ struct RCTInstanceCallback : public InstanceCallback {
|
|||
// We better be on the right thread too.
|
||||
RCTAssertMainQueue();
|
||||
initializeImmediately = YES;
|
||||
} else if ([self.delegate respondsToSelector:@selector(shouldBridgeInitializeNativeModulesSynchronously:)]) {
|
||||
initializeImmediately = [self.delegate shouldBridgeInitializeNativeModulesSynchronously:self];
|
||||
}
|
||||
|
||||
// Set up modules that require main thread init or constants export
|
||||
|
|
Loading…
Reference in New Issue