@@ -28,9 +28,10 @@ import {
2828 Search ,
2929 Selector ,
3030 Switch ,
31- Tag ,
31+ TagBig ,
3232 Fumi ,
33- Header
33+ Header ,
34+ TagSmall
3435} from './components'
3536import Ionicons from 'react-native-vector-icons/Ionicons'
3637
@@ -63,16 +64,21 @@ function Home({ navigation, route }: HomeT) {
6364 const [ isEnabled , setIsEnabled ] = useState ( false )
6465 const [ redCheckBoxValue , setRedCheckBoxValue ] = useState ( false )
6566 const [ whiteCheckBoxValue , setWhiteCheckBoxValue ] = useState ( false )
67+ const [ isInvisibleBorder , setIsInvisibleBorder ] = useState ( false )
68+ const [ isVisibleBorder , setIsVisibleBorder ] = useState ( false )
6669 const { navigate } = navigation
6770
6871 const toggleSwitch = ( ) => setIsEnabled ( previousState => ! previousState )
6972 const toggleRedCheckBox = ( ) => setRedCheckBoxValue ( redCheckBoxValue => ! redCheckBoxValue )
7073 const toggleWhiteCheckBox = ( ) => setWhiteCheckBoxValue ( whiteCheckBoxValue => ! whiteCheckBoxValue )
74+ const toggleTagBig = ( ) => setIsInvisibleBorder ( previousState => ! previousState )
75+ const toggleTagSmall = ( ) => setIsVisibleBorder ( previousState => ! previousState )
7176 const openPopUp = ( ) => navigate ( 'POPUP' )
7277 const openSuccess = ( ) => navigate ( 'SuccessScreen' )
7378 const openAuth = ( ) => navigate ( 'SignUpScreen' )
7479 const openFilterList = ( ) => navigate ( 'FiltersListScreen' )
7580 const openMyProfile = ( ) => navigate ( 'MyProfileScreen' )
81+ const openFiltersScreen = ( ) => navigate ( 'FiltersScreen' )
7682
7783 return (
7884 < ScrollView style = { container } >
@@ -106,7 +112,7 @@ function Home({ navigation, route }: HomeT) {
106112 < Space height = { 25 } />
107113 < Text title = "ButtonReview" h1 textStyle = { textStyle } />
108114 < Space height = { 10 } />
109- < ButtonReview />
115+ < ButtonReview onPress = { ( ) => { } } />
110116 < Space height = { 25 } />
111117 < Text title = "CardImage" h1 textStyle = { textStyle } />
112118 < Space height = { 10 } />
@@ -136,11 +142,33 @@ function Home({ navigation, route }: HomeT) {
136142 < Space height = { 25 } />
137143 < Text title = "CardProduct" h1 textStyle = { textStyle } />
138144 < Space height = { 10 } />
139- < CardProductBag />
145+ < CardProductBag
146+ price = { '10' }
147+ color = { 'example' }
148+ imageUri = { 'https://demotivation.ru/wp-content/uploads/2020/05/255095-Sepik-2048x1383.jpg' }
149+ clothes = { 'example' }
150+ size = { 'example' }
151+ />
140152 < Space height = { 10 } />
141- < CardProductCatalog />
153+ < CardProductCatalog
154+ color = { 'example' }
155+ clothes = { 'example' }
156+ size = { 'example' }
157+ price = { '10' }
158+ brand = { 'example' }
159+ ratingList = { [ 3 , 3 , 3 ] }
160+ imageUri = { 'https://demotivation.ru/wp-content/uploads/2020/05/255095-Sepik-2048x1383.jpg' }
161+ />
142162 < Space height = { 20 } />
143- < CardProductOrderInfo />
163+ < CardProductOrderInfo
164+ color = { 'example' }
165+ clothes = { 'example' }
166+ size = { 'example' }
167+ price = { '10' }
168+ brand = { 'example' }
169+ units = { '1' }
170+ imageUri = { 'https://demotivation.ru/wp-content/uploads/2020/05/255095-Sepik-2048x1383.jpg' }
171+ />
144172 < Space height = { 25 } />
145173 < Text title = "CardProductCover" h1 textStyle = { textStyle } />
146174 < Space height = { 10 } />
@@ -212,7 +240,14 @@ function Home({ navigation, route }: HomeT) {
212240 < Space height = { 25 } />
213241 < Text title = "ReviewCard" h1 textStyle = { textStyle } />
214242 < Space height = { 10 } />
215- < ReviewCard />
243+ < ReviewCard
244+ name = { 'example' }
245+ review = { 'example' }
246+ date = { 'example' }
247+ onPress = { ( ) => { } }
248+ ratingList = { [ 3 , 3 , 3 ] }
249+ avatarUri = { 'https://mediasole.ru/data/images/74/74212/150-1.jpg' }
250+ />
216251 < Space height = { 25 } />
217252 < Text title = "Search" h1 textStyle = { textStyle } />
218253 < Space height = { 10 } />
@@ -228,29 +263,25 @@ function Home({ navigation, route }: HomeT) {
228263 < Space height = { 25 } />
229264 < Text title = "Tag" h1 textStyle = { textStyle } />
230265 < Space height = { 10 } />
231- < Tag title = { 'Tag' } isOutline = { true } isSmall = { true } isWhiteText = { true } />
266+ < TagBig title = { 'Tag' } onToggle = { toggleTagBig } isInvisibleBorder = { isInvisibleBorder } />
232267 < Space height = { 10 } />
233- < Tag title = { 'Tag' } isOutline = { true } isSmall = { false } isWhiteText = { true } />
234- < Space height = { 10 } />
235- < Tag title = { 'Tag' } isOutline = { true } isSmall = { false } isWhiteText = { false } isWhiteButton = { true } />
236- < Space height = { 10 } />
237- < Tag title = { 'Tag' } isOutline = { false } isSmall = { true } isWhiteText = { false } />
268+ < TagSmall title = { 'Tag' } onToggle = { toggleTagSmall } isVisibleBorder = { isVisibleBorder } />
238269 < Space height = { 25 } />
239270 < Text title = "SuccessScreen" h1 textStyle = { textStyle } />
240271 < Space height = { 10 } />
241- < Button onPress = { openSuccess } title = { 'Open SuccessScreen!' } />
272+ < Button isOutline = { false } isSmall = { false } onPress = { openSuccess } title = { 'Open SuccessScreen!' } />
242273 < Space height = { 25 } />
243274 < Text title = "AuthScreen" h1 textStyle = { textStyle } />
244275 < Space height = { 10 } />
245- < Button title = { 'Open AuthScreen!' } onPress = { openAuth } />
276+ < Button isOutline = { false } isSmall = { false } title = { 'Open AuthScreen!' } onPress = { openAuth } />
246277 < Space height = { 25 } />
247278 < Text title = "FiltersListScreen" h1 textStyle = { textStyle } />
248279 < Space height = { 10 } />
249- < Button title = { 'Open FiltersListScreen!' } onPress = { openFilterList } />
280+ < Button isOutline = { false } isSmall = { false } title = { 'Open FiltersListScreen!' } onPress = { openFilterList } />
250281 < Space height = { 25 } />
251282 < Text title = "MyProfileScreen" h1 textStyle = { textStyle } />
252283 < Space height = { 10 } />
253- < Button title = { 'Open MyProfile!' } onPress = { openMyProfile } />
284+ < Button isOutline = { false } isSmall = { false } title = { 'Open MyProfile!' } onPress = { openMyProfile } />
254285 < Space height = { 25 } />
255286 < Text title = "Fumi" h1 textStyle = { textStyle } />
256287 < Space height = { 10 } />
@@ -262,15 +293,19 @@ function Home({ navigation, route }: HomeT) {
262293 < Space height = { 10 } />
263294 < Text title = "h0" h1 textStyle = { textStyle } />
264295 < Space height = { 10 } />
265- < Header h0 />
296+ < Header h0 onPress = { ( ) => { } } title = { 'Header' } />
266297 < Space height = { 10 } />
267298 < Text title = "h1" h1 textStyle = { textStyle } />
268299 < Space height = { 10 } />
269- < Header h1 />
300+ < Header h1 onPress = { ( ) => { } } title = { 'Header' } />
270301 < Space height = { 10 } />
271302 < Text title = "h2" h1 textStyle = { textStyle } />
272303 < Space height = { 10 } />
273- < Header h2 />
304+ < Header h2 onPress = { ( ) => { } } title = { 'Header' } />
305+ < Space height = { 25 } />
306+ < Text title = "FiltersScreen" h1 textStyle = { textStyle } />
307+ < Space height = { 10 } />
308+ < Button isOutline = { false } isSmall = { false } onPress = { openFiltersScreen } title = { 'Open FiltersScreen!' } />
274309 < Space height = { 25 } />
275310 < Text title = "" h1 textStyle = { textStyle } />
276311 < Space height = { 10 } />
0 commit comments