mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-08 22:42:05 +08:00
Expose print function to java
Reviewed By: astreet Differential Revision: D4962456 fbshipit-source-id: 8f62ed6724490e621fbc11573b2a9b25c56e51f1
This commit is contained in:
committed by
Facebook Github Bot
parent
5c7c65e964
commit
924b869f76
@@ -667,4 +667,14 @@ public class YogaNode {
|
||||
public Object getData() {
|
||||
return mData;
|
||||
}
|
||||
|
||||
private native void jni_YGNodePrint(long nativePointer);
|
||||
|
||||
/**
|
||||
* Use the set logger (defaults to adb log) to print out the styles, children, and computed
|
||||
* layout of the tree rooted at this node.
|
||||
*/
|
||||
public void print() {
|
||||
jni_YGNodePrint(mNativePointer);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user