forked from sdp-tech/UPCY_Mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdp-tech#77 feat: add lookbook base layout
- Loading branch information
1 parent
ac85b71
commit 6b5e3e0
Showing
4 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Dimensions, View } from 'react-native'; | ||
|
||
const ListItem = () => { | ||
const { width } = Dimensions.get('screen'); | ||
|
||
const COLUMN_COUNT = 2; | ||
const ITEM_WIDTH = (width * 0.9) / COLUMN_COUNT; | ||
|
||
return ( | ||
<View style={{ width: ITEM_WIDTH }}> | ||
<View style={{ width: '100%', backgroundColor: 'gray', height: 200 }} /> | ||
</View> | ||
); | ||
}; | ||
|
||
export default ListItem; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Dimensions, View } from 'react-native'; | ||
|
||
const LookbookList = () => { | ||
const { width } = Dimensions.get('window'); | ||
return ( | ||
<View | ||
style={{ width: '100%', backgroundColor: 'gray', height: 300 }}></View> | ||
); | ||
}; | ||
|
||
export default LookbookList; |
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