Permalink
Browse files

Add deprecation warning to RCTBatchedBridge

Reviewed By: fkgozali

Differential Revision: D5553607

fbshipit-source-id: 94a69264231c4adc1648e34ad64833f042e0d4db
  • Loading branch information...
javache authored and facebook-github-bot committed Aug 4, 2017
1 parent e697ed7 commit f3feca91fc9c2c413c8c0f00436391849dc56473
Showing with 5 additions and 0 deletions.
  1. +5 −0 React/Base/RCTBatchedBridge.mm
@@ -538,6 +538,11 @@ - (void)executeSourceCode:(NSData *)sourceCode
[[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];

0 comments on commit f3feca9

Please sign in to comment.