From 6cb396378c8d3adc93d761b0f22f33d3cd4e9057 Mon Sep 17 00:00:00 2001 From: eujin-shin Date: Sat, 6 Jul 2024 15:50:58 +0900 Subject: [PATCH] #77 feat: add lookbook addButton component --- src/assets/lookbook/plusSquare.svg | 3 ++ src/components/Lookbook/LookbookAddButton.tsx | 29 +++++++++++++++++++ src/pages/ComponentsTest.tsx | 2 ++ 3 files changed, 34 insertions(+) create mode 100644 src/assets/lookbook/plusSquare.svg create mode 100644 src/components/Lookbook/LookbookAddButton.tsx diff --git a/src/assets/lookbook/plusSquare.svg b/src/assets/lookbook/plusSquare.svg new file mode 100644 index 0000000..e97aec4 --- /dev/null +++ b/src/assets/lookbook/plusSquare.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/Lookbook/LookbookAddButton.tsx b/src/components/Lookbook/LookbookAddButton.tsx new file mode 100644 index 0000000..97b8756 --- /dev/null +++ b/src/components/Lookbook/LookbookAddButton.tsx @@ -0,0 +1,29 @@ +import { StyleSheet, TouchableOpacity, View } from 'react-native'; +import PlusSquare from '../../assets/lookbook/plusSquare.svg'; +import { Container } from 'react-native-collapsible-tab-view'; + +const LookbookAddButton = ({ onPress }: { onPress: () => void }) => { + return ( + + + + + + + + ); +}; + +const Styles = StyleSheet.create({ + container: { + width: 54, + height: 54, + backgroundColor: 'black', + borderRadius: 100, + alignItems: 'center', + justifyContent: 'center', + margin: 5, + }, +}); + +export default LookbookAddButton; diff --git a/src/pages/ComponentsTest.tsx b/src/pages/ComponentsTest.tsx index 03cfe82..e18f59c 100644 --- a/src/pages/ComponentsTest.tsx +++ b/src/pages/ComponentsTest.tsx @@ -3,6 +3,7 @@ import Dropdown from '../common/Dropdown'; import { useState } from 'react'; import { Body16M } from '../styles/GlobalText'; import LookbookButton from '../components/Lookbook/LookbookButton'; +import LookbookAddButton from '../components/Lookbook/LookbookAddButton'; const TestDropdown = ({ index }: { index: number }) => { const [value, setValue] = useState(undefined); @@ -26,6 +27,7 @@ export default function ComponentsTest() { 테스트용 페이지 + {}} /> );