diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarker.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarker.java index 5dc1dc9fd..c2df8f0d6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarker.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarker.java @@ -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);