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  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:
committed by
Facebook GitHub Bot
parent
bc4c8f9fd9
commit
272eb940f1
@@ -12,7 +12,7 @@ Adding Yoga to a project is as simple as adding the dependency to your package m
|
|||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
dependencies {
|
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.setWidth(500);
|
||||||
root.setHeight(300);
|
root.setHeight(300);
|
||||||
root.setJustifyContent(yoga.JUSTIFY_CENTER);
|
root.setJustifyContent(yoga.JUSTIFY_CENTER);
|
||||||
|
root.setFlexDirection(yoga.FLEX_DIRECTION_ROW);
|
||||||
|
|
||||||
const node1 = Node.create();
|
const node1 = Node.create();
|
||||||
node1.setWidth(100);
|
node1.setWidth(100);
|
||||||
|
Reference in New Issue
Block a user