Skip to content
This repository was archived by the owner on Mar 15, 2025. It is now read-only.

Commit 9d81218

Browse files
committed
default to nowrap
1 parent 47807e7 commit 9d81218

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## 0.2.0 (March 21, 2016)
2+
3+
### React
4+
- Row now defaults `flexWrap` to `wrap`. If you want `nowrap` you must specify no wrap in props.
5+
```
6+
<Row nowrap>
7+
```

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,23 @@ The api is inspired by
4747

4848
The main difference is you can specify the grid size. By default `<Row>` is a size of 12. However if you want you can make a `<Row>` any size you want.
4949

50+
#### Changes for 0.2.0
5051

52+
As of 0.2.0 Row will automatically wrap components. If you do not want components to automatically wrap you must specify `nowrap` in the row's prop.
5153

52-
# What's working
54+
```
55+
<Row size={12} nowrap>
56+
```
57+
58+
59+
60+
### What's working
5361
* Basic Grid
5462
* Styles
5563
* Hiding Items
5664
* Basic Unit Testing
5765

58-
# To Do
66+
### To Do
5967
* Jest Testing. (Possibly New Examples Repo)
6068
* More Examples
6169
* More Documentation

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-flexbox-grid",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "Grid system for react native based on flexbox grid's api",
55
"main": "src/index.js",
66
"scripts": {

src/components/Row.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default class Row extends Component {
4343
onLayout={this._getWidth.bind(this)}
4444
style={[this.props.style,
4545
{ flexDirection: 'row',
46-
flexWrap: this.props.wrap ? 'wrap' : 'nowrap',
46+
flexWrap: this.props.nowrap ? 'nowrap' : 'wrap',
4747
alignItems: this.props.alignItems,
4848
justifyContent: this.props.justifyContent}]}>
4949
{this._cloneElements()}

0 commit comments

Comments
 (0)