mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
[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:
parent
fd2cb763df
commit
1419941f8e
@ -64,6 +64,8 @@ RCT_EXPORT_MODULE()
|
||||
|
||||
- (void)sendTimespans
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
|
||||
[_bridge enqueueJSCall:@"PerformanceLogger.addTimespans" args:@[
|
||||
RCTPerformanceLoggerOutput(),
|
||||
@[
|
||||
|
Loading…
x
Reference in New Issue
Block a user