mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-30 05:14:53 +08:00
Fix styles in 'GridView' example
This commit is contained in:
@@ -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})`
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user