Fix styles in 'GridView' example

This commit is contained in:
Nicolas Gallagher
2015-12-19 03:27:44 -08:00
parent 11b861ae64
commit 4191d58694

View File

@@ -42,8 +42,8 @@ export default class GridView extends Component {
const contentContainerStyle = { const contentContainerStyle = {
...styles.contentContainer, ...styles.contentContainer,
margin: `0 calc(-0.5 * ${alley})`, marginHorizontal: `calc(-0.5 * ${alley})`,
padding: `0 ${gutter}` paddingHorizontal: `${gutter}`
} }
const newChildren = React.Children.map(children, (child) => { const newChildren = React.Children.map(children, (child) => {
@@ -51,7 +51,7 @@ export default class GridView extends Component {
style: { style: {
...child.props.style, ...child.props.style,
...styles.column, ...styles.column,
margin: `0 calc(0.5 * ${alley})` marginHorizontal: `calc(0.5 * ${alley})`
} }
}) })
}) })