From f3feca91fc9c2c413c8c0f00436391849dc56473 Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Fri, 4 Aug 2017 07:33:22 -0700 Subject: [PATCH] Add deprecation warning to RCTBatchedBridge Reviewed By: fkgozali Differential Revision: D5553607 fbshipit-source-id: 94a69264231c4adc1648e34ad64833f042e0d4db --- React/Base/RCTBatchedBridge.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/React/Base/RCTBatchedBridge.mm b/React/Base/RCTBatchedBridge.mm index 326546f20ea..de67e6a3a04 100644 --- a/React/Base/RCTBatchedBridge.mm +++ b/React/Base/RCTBatchedBridge.mm @@ -538,6 +538,11 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR [[NSNotificationCenter defaultCenter] postNotificationName:RCTJavaScriptDidLoadNotification object:self->_parentBridge userInfo:@{@"bridge": self}]; + +#if RCT_DEV + RCTLogWarn(@"RCTBatchedBridge is deprecated and will be removed in a future React Native release. " + "See https://fb.me/react-cxx-bridge for upgrade instructions."); +#endif }); [self _flushPendingCalls];