Add Playground link in Yoga layouts
Summary: Adds a link to the Yoga playground atop all properties of Yoga-based views. We could make the playground match the properties below if I figure out the hashing mechanism the website uses. This is a start. Reviewed By: muraziz Differential Revision: D23758538 fbshipit-source-id: 6a3f206914aa9962e55852df548f8026783506e9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7307ed7014
commit
0d7cac3952
@@ -192,6 +192,8 @@ public class DebugComponentDescriptor extends NodeDescriptor<DebugComponent> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final FlipperObject.Builder data = new FlipperObject.Builder();
|
final FlipperObject.Builder data = new FlipperObject.Builder();
|
||||||
|
data.put("<PLAYGROUND>", InspectorValue.immutable("https://yogalayout.com/playground/"));
|
||||||
|
|
||||||
data.put("background", DataUtils.fromDrawable(layout.getBackground()));
|
data.put("background", DataUtils.fromDrawable(layout.getBackground()));
|
||||||
data.put("foreground", DataUtils.fromDrawable(layout.getForeground()));
|
data.put("foreground", DataUtils.fromDrawable(layout.getForeground()));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user