Skip to content

Commit f331a58

Browse files
mhorowitzFacebook Github Bot 1
authored andcommitted
Move initialization of RCTBatchedBridge into its own method.
Summary: This makes room for local development without touching OSS code. Reviewed By: tadeuzagallo Differential Revision: D2986122 fb-gh-sync-id: 2f23088a078b0f0fb4b74946490fd5b67b01c0ac shipit-source-id: 2f23088a078b0f0fb4b74946490fd5b67b01c0ac
1 parent d7d47d8 commit f331a58

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

React/Base/RCTBridge.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,11 @@ - (void)setUp
268268
// Sanitize the bundle URL
269269
_bundleURL = [RCTConvert NSURL:_bundleURL.absoluteString];
270270

271+
[self createBatchedBridge];
272+
}
273+
274+
- (void)createBatchedBridge
275+
{
271276
self.batchedBridge = [[RCTBatchedBridge alloc] initWithParentBridge:self];
272277
}
273278

@@ -288,7 +293,7 @@ - (BOOL)isBatchActive
288293

289294
- (void)invalidate
290295
{
291-
RCTBatchedBridge *batchedBridge = (RCTBatchedBridge *)self.batchedBridge;
296+
RCTBridge *batchedBridge = self.batchedBridge;
292297
self.batchedBridge = nil;
293298

294299
if (batchedBridge) {

0 commit comments

Comments
 (0)