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

Commit 63c89e9

Browse files
committed
added spread operator props to row
1 parent 0bda3e9 commit 63c89e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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.0.3",
3+
"version": "0.0.4",
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
@@ -52,7 +52,7 @@ export default class Row extends Component {
5252
return null;
5353
} else {
5454
return (
55-
<View onLayout={this.getWidth.bind(this)} style={[styles.container, this.props.style, {flexWrap: this.props.wrap ? 'wrap' : 'nowrap'}, {alignItems: this.props.alignItems, justifyContent: this.props.justifyContent}]}>
55+
<View {...this.props} onLayout={this.getWidth.bind(this)} style={[styles.container, this.props.style, {flexWrap: this.props.wrap ? 'wrap' : 'nowrap'}, {alignItems: this.props.alignItems, justifyContent: this.props.justifyContent}]}>
5656
{React.Children.map(this.props.children, (element, idx) => {
5757
// Check if state is updated before cloning. Causes Layout to be slower, but stable.
5858
if(this.state.updated){

0 commit comments

Comments
 (0)