diff --git a/React/Base/RCTBatchedBridge.m b/React/Base/RCTBatchedBridge.m index 9f30f4040..86326ee7b 100644 --- a/React/Base/RCTBatchedBridge.m +++ b/React/Base/RCTBatchedBridge.m @@ -41,14 +41,6 @@ typedef NS_ENUM(NSUInteger, RCTBridgeFields) { RCT_EXTERN NSArray *RCTGetModuleClasses(void); -@interface RCTBatchedBridge : RCTBridge - -@property (nonatomic, weak) RCTBridge *parentBridge; -@property (nonatomic, weak) id javaScriptExecutor; -@property (nonatomic, assign) BOOL moduleSetupComplete; - -@end - @implementation RCTBatchedBridge { BOOL _wasBatchActive; diff --git a/React/Base/RCTBridge+Private.h b/React/Base/RCTBridge+Private.h index 8f093262c..fd0dd9a38 100644 --- a/React/Base/RCTBridge+Private.h +++ b/React/Base/RCTBridge+Private.h @@ -117,3 +117,13 @@ - (void)_immediatelyCallTimer:(NSNumber *)timer; @end + +@interface RCTBatchedBridge : RCTBridge + +@property (nonatomic, weak) RCTBridge *parentBridge; +@property (nonatomic, weak) id javaScriptExecutor; +@property (nonatomic, assign) BOOL moduleSetupComplete; + +- (instancetype)initWithParentBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER; + +@end diff --git a/React/Base/RCTBridge.m b/React/Base/RCTBridge.m index a57248c5a..f568c58b8 100644 --- a/React/Base/RCTBridge.m +++ b/React/Base/RCTBridge.m @@ -25,14 +25,6 @@ NSString *const RCTJavaScriptDidLoadNotification = @"RCTJavaScriptDidLoadNotific NSString *const RCTJavaScriptDidFailToLoadNotification = @"RCTJavaScriptDidFailToLoadNotification"; NSString *const RCTDidInitializeModuleNotification = @"RCTDidInitializeModuleNotification"; -@interface RCTBatchedBridge : RCTBridge - -@property (nonatomic, weak) RCTBridge *parentBridge; - -- (instancetype)initWithParentBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER; - -@end - static NSMutableArray *RCTModuleClasses; NSArray *RCTGetModuleClasses(void); NSArray *RCTGetModuleClasses(void)