Created
November 7, 2019 14:29
-
-
Save Billmike/86b8757cf2dc57b95bc3fa25c31beca2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const layouts = [ | |
{ | |
id: "column", | |
name: "Column", | |
layout: { | |
container: { | |
flexDirection: "column", | |
justifyContent: "center", | |
alignItems: "center" | |
} | |
} | |
}, | |
{ | |
id: "row", | |
name: "Row", | |
layout: { | |
container: { | |
flexDirection: "row", | |
alignItems: "center" | |
} | |
} | |
}, | |
{ | |
id: "wrap", | |
name: "Wrap", | |
layout: { | |
container: { | |
flexDirection: "row", | |
flexWrap: "wrap" | |
}, | |
child: { | |
flex: 0, | |
width: width / 2 - 8 * 8 | |
} | |
} | |
} | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment