From 0d7cac395281d8627cb906e7f08bfcc5db465c0a Mon Sep 17 00:00:00 2001 From: Paco Estevez Garcia Date: Thu, 17 Sep 2020 09:38:20 -0700 Subject: [PATCH] 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 --- .../flipper/plugins/litho/DebugComponentDescriptor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/plugins/litho/src/main/java/com/facebook/flipper/plugins/litho/DebugComponentDescriptor.java b/android/plugins/litho/src/main/java/com/facebook/flipper/plugins/litho/DebugComponentDescriptor.java index 63bedd045..26392eb3a 100644 --- a/android/plugins/litho/src/main/java/com/facebook/flipper/plugins/litho/DebugComponentDescriptor.java +++ b/android/plugins/litho/src/main/java/com/facebook/flipper/plugins/litho/DebugComponentDescriptor.java @@ -192,6 +192,8 @@ public class DebugComponentDescriptor extends NodeDescriptor { } final FlipperObject.Builder data = new FlipperObject.Builder(); + data.put("", InspectorValue.immutable("https://yogalayout.com/playground/")); + data.put("background", DataUtils.fromDrawable(layout.getBackground())); data.put("foreground", DataUtils.fromDrawable(layout.getForeground()));