Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Commit

Permalink
added padding to board
Browse files Browse the repository at this point in the history
  • Loading branch information
lochungtin committed May 29, 2021
1 parent acdf7ad commit 8368d83
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/components/Board/Tile/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export const TileStyles = StyleSheet.create({
borderRadius: 10,
display: 'flex',
justifyContent: 'center',
marginHorizontal: 5,
marginVertical: 5,
},
text: {
fontSize: 20,
Expand Down
8 changes: 3 additions & 5 deletions src/components/Board/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ export const BoardStyles = StyleSheet.create({
borderRadius: 10,
display: 'flex',
flexDirection: 'column',
height: screenWidth * 0.9,
justifyContent: 'space-between',
width: screenWidth * 0.9
justifyContent: 'center',
padding: 5,
},
row: {
alignItems: 'center',
display: 'flex',
flexDirection: 'row',
justifyContent: 'space-between',
width: screenWidth * 0.9
justifyContent: 'center',
}
});
1 change: 1 addition & 0 deletions src/screens/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class Screen extends React.Component {
render() {
return (
<View style={{ ...ScreenStyles.screen, backgroundColor: darktheme.bgColor }}>
<View style={{ height: 200 }} />
<Board />
</View >
);
Expand Down

0 comments on commit 8368d83

Please sign in to comment.