Instrumentation tests for apps that provide a testPayload

Reviewed By: AaaChiuuu

Differential Revision: D4873849

fbshipit-source-id: b5235b952faea2e42fb4292fac4ca409e22ecb56
This commit is contained in:
Andrew Y. Chen 2017-04-17 14:45:38 -07:00 committed by Facebook Github Bot
parent 9c44630866
commit 1dc0f7e994
1 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@ package com.facebook.react.bridge;
import javax.annotation.Nullable;
import com.facebook.proguard.annotations.DoNotStrip;
/**
* Static class that allows markers to be placed in React code and responded to in a
* configurable way
@ -25,6 +26,11 @@ public class ReactMarker {
sMarkerListener = listener;
}
@DoNotStrip
public static void clearMarkerListener() {
sMarkerListener = null;
}
@DoNotStrip
public static void logMarker(String name) {
logMarker(name, null);