-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
5807566
commit 4b1b96b
Showing
3 changed files
with
143 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { useState, useEffect } from 'react'; | ||
import { View, SafeAreaView, FlatList, Text } from 'react-native'; | ||
import styled from 'styled-components/native'; | ||
import { Body14R, Body16B } from '../../../styles/GlobalText'; | ||
|
||
|
||
const DetailBoxPage = () => { | ||
const data = [ | ||
{ label: '카테고리', data: '아우터'}, | ||
{ label: '재질', data: '데님'}, | ||
{ label: '스타일', data: '빈티지'}, | ||
{ label: '핏', data: '노멀'}, | ||
{ label: '제작 기간', data: '3주'}, | ||
{ label: '서비스 상세', data: '자유 양식'}, | ||
] | ||
|
||
return ( | ||
<FlatList | ||
data={data} | ||
renderItem={({item}:any) => { | ||
return ( | ||
<InfoSection> | ||
<Body16B>{item.label}</Body16B> | ||
<Body14R style={{marginLeft:10}}>{item.data}</Body14R> | ||
</InfoSection> | ||
) | ||
} } | ||
/> | ||
) | ||
} | ||
|
||
const InfoSection = styled.View` | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
padding: 16px; | ||
border-bottom-width: 1px; | ||
border-color: #DFDFDF; | ||
` | ||
|
||
export default DetailBoxPage; |
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,40 @@ | ||
import { useState, useEffect } from 'react'; | ||
import { View, SafeAreaView, FlatList, Text } from 'react-native'; | ||
import styled from 'styled-components/native'; | ||
import { Body14R, Body16B } from '../../../styles/GlobalText'; | ||
|
||
|
||
const OptionPage = () => { | ||
const data = [ | ||
{ label: '옵션명1',price:'1000원', data: '상세설명, 사진첨부 가능'}, | ||
{ label: '옵션명2',price:'2000원', data: '상세설명, 사진첨부 가능'} | ||
] | ||
|
||
return ( | ||
<View> | ||
<Text style={{padding:16, fontWeight:'700', color: 'black'}}>옵션별 추가 금액</Text> | ||
<FlatList | ||
data={data} | ||
renderItem={({item}:any) => { | ||
return ( | ||
<InfoSection> | ||
<Body16B>{item.label}</Body16B> | ||
<Body14R style={{textAlign: 'right'}}>{item.price}</Body14R> | ||
<Body14R style={{textAlign: 'center'}}>{item.data}</Body14R> | ||
</InfoSection> | ||
) | ||
} } | ||
/> | ||
<Text>주문 시 유의사항</Text> | ||
</View> | ||
) | ||
} | ||
|
||
const InfoSection = styled.View` | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
padding: 16px; | ||
` | ||
|
||
export default OptionPage; |