Skip to content

Commit

Permalink
Fix flexShrink default value in Layout Props docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jzxchiang1 authored Jan 23, 2022
1 parent 1972474 commit afe5934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/layout-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ When `flex` is -1, the component is normally sized according to `width` and `hei

[`flexShrink`](layout-props#flexshrink) describes how to shrink children along the main axis in the case in which the total size of the children overflows the size of the container on the main axis. `flexShrink` is very similar to `flexGrow` and can be thought of in the same way if any overflowing size is considered to be negative remaining space. These two properties also work well together by allowing children to grow and shrink as needed.

`flexShrink` accepts any floating point value >= 0, with 1 being the default value. A container will shrink its children weighted by the children’s `flexShrink` values.
`flexShrink` accepts any floating point value >= 0, with 0 being the default value. A container will shrink its children weighted by the children’s `flexShrink` values.

| Type | Required |
| ------ | -------- |
Expand Down

0 comments on commit afe5934

Please sign in to comment.