1- import React , { useState } from 'react'
1+ import React , { useState , useRef } from 'react'
22import { StyleSheet , View , ScrollView } from 'react-native'
3- import { BLACK , WHITE } from './constants'
3+ import { Modalize } from 'react-native-modalize'
4+ import { BLACK , WHITE , PRIMARY , DARK } from './constants'
45import {
56 Space ,
67 Text ,
@@ -27,10 +28,11 @@ import {
2728 Search ,
2829 Selector ,
2930 Switch ,
30- TabBar ,
3131 Tag ,
32- ExampleForm
32+ Fumi ,
33+ Header
3334} from './components'
35+ import Ionicons from 'react-native-vector-icons/Ionicons'
3436
3537const styles = StyleSheet . create ( {
3638 container : {
@@ -42,6 +44,12 @@ const styles = StyleSheet.create({
4244 } ,
4345 textStyle : {
4446 color : WHITE
47+ } ,
48+ labelStyle : {
49+ color : PRIMARY
50+ } ,
51+ fumiStyle : {
52+ flex : 1
4553 }
4654} )
4755
@@ -51,7 +59,7 @@ interface HomeT {
5159}
5260
5361function Home ( { navigation, route } : HomeT ) {
54- const { container, textStyle, layoutContainer } = styles
62+ const { container, textStyle, layoutContainer, labelStyle } = styles
5563 const [ isEnabled , setIsEnabled ] = useState ( false )
5664 const [ redCheckBoxValue , setRedCheckBoxValue ] = useState ( false )
5765 const [ whiteCheckBoxValue , setWhiteCheckBoxValue ] = useState ( false )
@@ -184,11 +192,7 @@ function Home({ navigation, route }: HomeT) {
184192 < Space height = { 10 } />
185193 < Filter onPressFilter = { ( ) => { } } onPressApps = { ( ) => { } } onPressPrice = { ( ) => { } } />
186194 < Space height = { 25 } />
187- < Text title = "FilterBottom" h1 textStyle = { textStyle } />
188- < Space height = { 10 } />
189- < FilterBottom />
190- < Space height = { 25 } />
191- < Text title = "FilterBottom" h1 textStyle = { textStyle } />
195+ < Text title = "Labels" h1 textStyle = { textStyle } />
192196 < Space height = { 10 } />
193197 < Labels isSaleOrNew = { true } title = { '-30%' } />
194198 < Space height = { 15 } />
@@ -220,7 +224,7 @@ function Home({ navigation, route }: HomeT) {
220224 < Space height = { 25 } />
221225 < Text title = "Switch" h1 textStyle = { textStyle } />
222226 < Space height = { 10 } />
223- < Switch />
227+ < Switch onValueChange = { toggleSwitch } isValue = { isEnabled } />
224228 < Space height = { 25 } />
225229 < Text title = "Tag" h1 textStyle = { textStyle } />
226230 < Space height = { 10 } />
@@ -232,10 +236,6 @@ function Home({ navigation, route }: HomeT) {
232236 < Space height = { 10 } />
233237 < Tag title = { 'Tag' } isOutline = { false } isSmall = { true } isWhiteText = { false } />
234238 < Space height = { 25 } />
235- < Text title = "TextInputs" h1 textStyle = { textStyle } />
236- < Space height = { 10 } />
237- < ExampleForm />
238- < Space height = { 25 } />
239239 < Text title = "SuccessScreen" h1 textStyle = { textStyle } />
240240 < Space height = { 10 } />
241241 < Button onPress = { openSuccess } title = { 'Open SuccessScreen!' } />
@@ -252,6 +252,28 @@ function Home({ navigation, route }: HomeT) {
252252 < Space height = { 10 } />
253253 < Button title = { 'Open MyProfile!' } onPress = { openMyProfile } />
254254 < Space height = { 25 } />
255+ < Text title = "Fumi" h1 textStyle = { textStyle } />
256+ < Space height = { 10 } />
257+ </ View >
258+ < Fumi label = "Email" iconName = { 'mail' } iconClass = { Ionicons } labelStyle = { labelStyle } iconColor = { PRIMARY } />
259+ < Space height = { 25 } />
260+ < View style = { layoutContainer } >
261+ < Text title = "Header" h1 textStyle = { textStyle } />
262+ < Space height = { 10 } />
263+ < Text title = "h0" h1 textStyle = { textStyle } />
264+ < Space height = { 10 } />
265+ < Header h0 />
266+ < Space height = { 10 } />
267+ < Text title = "h1" h1 textStyle = { textStyle } />
268+ < Space height = { 10 } />
269+ < Header h1 />
270+ < Space height = { 10 } />
271+ < Text title = "h2" h1 textStyle = { textStyle } />
272+ < Space height = { 10 } />
273+ < Header h2 />
274+ < Space height = { 25 } />
275+ < Text title = "" h1 textStyle = { textStyle } />
276+ < Space height = { 10 } />
255277 </ View >
256278 </ ScrollView >
257279 )
0 commit comments