react-flexr
Advanced tools
Comparing version 2.0.0-alpha.4 to 2.0.0-alpha.5
@@ -114,6 +114,8 @@ 'use strict'; | ||
// TODO: Find a better context solution when React 0.14 lands. | ||
var parentProps = {}; | ||
if (flexCells) parentProps.flex = true; | ||
var contextifiedChildren = _react2['default'].Children.map(children, function (child) { | ||
return _reactLibCloneWithProps2['default'](child, parentProps); | ||
return _reactLibCloneWithProps2['default'](child, { | ||
flex: flexCells ? true : false, | ||
key: child.key, | ||
ref: child.ref | ||
}); | ||
}); | ||
@@ -120,0 +122,0 @@ |
@@ -96,6 +96,10 @@ import stylesheet from './stylesheet'; | ||
// TODO: Find a better context solution when React 0.14 lands. | ||
let parentProps = {}; | ||
if (flexCells) parentProps.flex = true; | ||
const contextifiedChildren = React.Children.map( | ||
children, ( child ) => cloneWithProps( child, parentProps ) | ||
children, ( child ) => { | ||
return cloneWithProps( child, { | ||
flex: flexCells ? true : false, | ||
key: child.key, | ||
ref: child.ref | ||
}); | ||
} | ||
); | ||
@@ -102,0 +106,0 @@ |
{ | ||
"name": "react-flexr", | ||
"version": "2.0.0-alpha.4", | ||
"version": "2.0.0-alpha.5", | ||
"description": "React flexbox grid made simple.", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38228
890