mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-16 23:00:20 +08:00
add UI Manager operations
Reviewed By: achen1 Differential Revision: D5741087 fbshipit-source-id: f6b8f713cb3c4e48b417b47557a45ff9a4a5bf05
This commit is contained in:
committed by
Facebook Github Bot
parent
e9a090fd9b
commit
672db77eae
@@ -16,4 +16,9 @@ public class NoopPrinter implements Printer {
|
||||
|
||||
@Override
|
||||
public void logMessage(DebugOverlayTag tag, String message) {}
|
||||
|
||||
@Override
|
||||
public boolean shouldDisplayLogMessage(final DebugOverlayTag tag) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,10 +4,10 @@ package com.facebook.debug.holder;
|
||||
|
||||
import com.facebook.debug.debugoverlay.model.DebugOverlayTag;
|
||||
|
||||
/** Interface to pass data to debugging tools. */
|
||||
/** Interface to debugging tool. */
|
||||
public interface Printer {
|
||||
|
||||
void logMessage(final DebugOverlayTag tag, final String message, Object... args);
|
||||
|
||||
void logMessage(final DebugOverlayTag tag, final String message);
|
||||
boolean shouldDisplayLogMessage(final DebugOverlayTag tag);
|
||||
}
|
||||
|
||||
@@ -19,4 +19,9 @@ public class ReactDebugOverlayTags {
|
||||
"Bridge Calls", "JS to Java calls (warning: this is spammy)", Color.MAGENTA);
|
||||
public static final DebugOverlayTag NATIVE_MODULE =
|
||||
new DebugOverlayTag("Native Module", "Native Module init", Color.rgb(0x80, 0x00, 0x80));
|
||||
public static final DebugOverlayTag UI_MANAGER =
|
||||
new DebugOverlayTag(
|
||||
"UI Manager",
|
||||
"UI Manager View Operations (requires restart\nwarning: this is spammy)",
|
||||
Color.CYAN);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user