Skip to content

Commit

Permalink
Add alignContent: 'space-evenly' (#3888)
Browse files Browse the repository at this point in the history
* Add `alignContent: 'space-evenly'`

Coming with 0.74

facebook/react-native#41020

* Update layout-props.md
  • Loading branch information
NickGerleman authored Dec 7, 2023
1 parent 9f7093c commit cc46589
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion docs/flexbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,9 @@ export default AlignSelfLayout;

- `space-between` Evenly space wrapped lines across the container's cross axis, distributing the remaining space between the lines.

- `space-around` Evenly space wrapped lines across the container's cross axis, distributing the remaining space around the lines. Compared to `space-between`, using `space-around` will result in space being distributed to the beginning of the first line and the end of the last line.
- `space-around` Evenly space wrapped lines across the container's cross axis, distributing the remaining space around the lines. Each end of the container has a half-sized space compared to the space between items.

- `space-evenly` Evenly space wrapped lines across the container's cross axis, distributing the remaining space around the lines. Each space is the same size.

You can learn more [here](https://yogalayout.com/docs/align-content).

Expand Down
6 changes: 3 additions & 3 deletions docs/layout-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,9 @@ export default App;

`alignContent` controls how rows align in the cross direction, overriding the `alignContent` of the parent. See https://developer.mozilla.org/en-US/docs/Web/CSS/align-content for more details.

| Type | Required |
| ------------------------------------------------------------------------------------ | -------- |
| enum('flex-start', 'flex-end', 'center', 'stretch', 'space-between', 'space-around') | No |
| Type | Required |
| ---------------------------------------------------------------------------------------------------- | -------- |
| enum('flex-start', 'flex-end', 'center', 'stretch', 'space-between', 'space-around', 'space-evenly') | No |

---

Expand Down

0 comments on commit cc46589

Please sign in to comment.