Skip to content

Commit

Permalink
Add deprecation warning to RCTBatchedBridge
Browse files Browse the repository at this point in the history
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 f3feca9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions React/Base/RCTBatchedBridge.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit f3feca9

Please sign in to comment.