Skip to content

Commit 0de9633

Browse files
authored
Flexbox: correct example description (facebook#3284)
1 parent 04250d6 commit 0de9633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/flexbox.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The defaults are different, with `flexDirection` defaulting to `column` instead
1616

1717
[`flex`](layout-props#flex) will define how your items are going to **“fill”** over the available space along your main axis. Space will be divided according to each element's flex property.
1818

19-
In the following example, the red, yellow, and green views are all children in the container view that has `flex: 1` set. The red view uses `flex: 1` , the yellow view uses `flex: 2`, and the green view uses `flex: 3` . **1+2+3 = 6**, which means that the red view will get `1/6` of the space, the yellow `2/6` of the space, and the green `3/6` of the space.
19+
In the following example, the red, orange, and green views are all children in the container view that has `flex: 1` set. The red view uses `flex: 1` , the orange view uses `flex: 2`, and the green view uses `flex: 3` . **1+2+3 = 6**, which means that the red view will get `1/6` of the space, the orange `2/6` of the space, and the green `3/6` of the space.
2020

2121
```SnackPlayer name=Flex%20Example
2222
import React from "react";

0 commit comments

Comments
 (0)