Skip to content

Instantly share code, notes, and snippets.

@dharavp
Last active February 12, 2018 11:43
Show Gist options
  • Save dharavp/68c662cb8e37ddbe3ef33bdf04b3cc45 to your computer and use it in GitHub Desktop.
Save dharavp/68c662cb8e37ddbe3ef33bdf04b3cc45 to your computer and use it in GitHub Desktop.
render() {
return (
<View style = {
{
flex: 1,
flexDirection: ‘column’,
justifyContent: ’center’
}
} >
//changed justifyContent value to the flex-start,flex-end,space-between,space-around
< View style = {{width: 50,height: 50,backgroundColor: ‘powderblue’}} />
< View style = {{width: 50,height: 50,backgroundColor: ‘skyblue’}} />
< View style = {{width: 50,height: 50,backgroundColor: ‘steelblue’}} />
</View>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment