[ReactNative] Log with RCTPerformanceLogger only once per bridge instance

Summary:
Fixes #1809

Even if a bridge has more than one root view, it's not supported by the js side
right now, and it will keep warning that those timespans had already been
recorded.
This commit is contained in:
Tadeu Zagallo 2015-07-09 07:26:54 -07:00
parent fd2cb763df
commit 1419941f8e

View File

@ -64,6 +64,8 @@ RCT_EXPORT_MODULE()
- (void)sendTimespans
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
[_bridge enqueueJSCall:@"PerformanceLogger.addTimespans" args:@[
RCTPerformanceLoggerOutput(),
@[