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
This commit is contained in:
Michael サイトー 中村 Bashurov
2022-10-03 21:13:20 -07:00
committed by Facebook GitHub Bot
parent bc4c8f9fd9
commit 272eb940f1

View File

@@ -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);