From 272eb940f156b0ba54a4e6c677b14f3832aeff89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20=E3=82=B5=E3=82=A4=E3=83=88=E3=83=BC=20=E4=B8=AD?= =?UTF-8?q?=E6=9D=91=20Bashurov?= Date: Mon, 3 Oct 2022 21:13:20 -0700 Subject: [PATCH] Update standalone.md docs (#1110) Summary: Added set of row direction, otherwise it'll be column and numbers won't correspond to comments https://codesandbox.io/s/yoga-standalone-docs-bug-izqwv?file=/src/index.js ![image](https://user-images.githubusercontent.com/1552189/142233513-8b21c77f-0a12-4c9d-9965-fe8c9e43c02f.png) Pull Request resolved: https://github.com/facebook/yoga/pull/1110 Reviewed By: yungsters Differential Revision: D40026417 Pulled By: yungsters fbshipit-source-id: 7e26406909268f85ee9b1ccf73aad50bab042ff9 --- website/contents/getting-started/standalone.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/contents/getting-started/standalone.md b/website/contents/getting-started/standalone.md index 78a46a7a..de65a020 100644 --- a/website/contents/getting-started/standalone.md +++ b/website/contents/getting-started/standalone.md @@ -12,7 +12,7 @@ Adding Yoga to a project is as simple as adding the dependency to your package m ```groovy dependencies { - compile 'com.facebook.yoga.android:yoga-layout:x.x.x' + compile 'com.facebook.yoga.android:yoga-layout:x.x.x' } ``` @@ -36,6 +36,7 @@ const root = Node.create(); root.setWidth(500); root.setHeight(300); root.setJustifyContent(yoga.JUSTIFY_CENTER); +root.setFlexDirection(yoga.FLEX_DIRECTION_ROW); const node1 = Node.create(); node1.setWidth(100);