1- import Images from '@assets/images/images '
1+ import { AppIcon } from '@assets/icons/icons '
22import Btn from '@components/Button'
33import { PaddingBottom , PaddingTop } from '@components/SafePadding'
4+ import { Colors } from '@utils/colors'
5+ import { Medium , SemiBold } from '@utils/fonts'
46import type { StackNav } from '@utils/types'
57import React , { useEffect } from 'react'
6- import { Dimensions , StyleSheet , Text , View } from 'react-native'
8+ import { Dimensions , StyleSheet , View } from 'react-native'
79import { ScrollView , TouchableOpacity } from 'react-native-gesture-handler'
810import Animated , { useAnimatedStyle , useSharedValue , withRepeat , withSpring } from 'react-native-reanimated'
911
@@ -34,47 +36,53 @@ export default function Home({ navigation }: { navigation: StackNav }) {
3436 navigation . navigate ( 'Animations' )
3537 } }
3638 >
37- < Animated . Image source = { Images . app_icon } style = { [ styles . icon , animatedStyle ] } />
38- < Text className = 'mt-4 text-center text-lg text-gray-900 dark:text-gray-100' > Welcome to Animations</ Text >
39+ { /* <Animated.Image source={Images.app_icon} style={[styles.icon, animatedStyle]} /> */ }
3940
40- < Text className = 'mt-2 text-center text-gray-400 dark:text-gray-600' > Tap on the icon to start</ Text >
41+ < Animated . View style = { [ styles . icon , animatedStyle ] } >
42+ < AppIcon width = { ICON_SIZE } height = { ICON_SIZE } />
43+ </ Animated . View >
44+ < SemiBold className = 'mt-4 text-center text-base text-gray-900 dark:text-gray-100' >
45+ Welcome to Animations
46+ </ SemiBold >
47+
48+ < Medium className = 'mt-2 text-center text-xs text-gray-400 dark:text-gray-600' > Tap on the icon to start</ Medium >
4149 </ TouchableOpacity >
4250 < View className = 'mt-5 w-full flex-row flex-wrap items-center justify-center px-5' style = { { gap : 10 } } >
4351 < Btn onPress = { ( ) => navigation . navigate ( 'Basic' ) } >
44- < Text className = 'text-white' > Basic</ Text >
52+ < Medium className = 'text-xs text- white' > Basic</ Medium >
4553 </ Btn >
4654 < Btn onPress = { ( ) => navigation . navigate ( 'DragAnimation' ) } >
47- < Text className = 'text-white' > Drag Animation</ Text >
55+ < Medium className = 'text-xs text- white' > Drag Animation</ Medium >
4856 </ Btn >
4957 < Btn onPress = { ( ) => navigation . navigate ( 'CustomizingAnimations' ) } >
50- < Text className = 'text-white' > Customizing Animations</ Text >
58+ < Medium className = 'text-xs text- white' > Customizing Animations</ Medium >
5159 </ Btn >
5260 < Btn onPress = { ( ) => navigation . navigate ( 'ApplyingModifiers' ) } >
53- < Text className = 'text-white' > Applying Modifiers</ Text >
61+ < Medium className = 'text-xs text- white' > Applying Modifiers</ Medium >
5462 </ Btn >
5563 < Btn onPress = { ( ) => navigation . navigate ( 'KeyboardAnimation' ) } >
56- < Text className = 'text-white' > Keyboard Animation</ Text >
64+ < Medium className = 'text-xs text- white' > Keyboard Animation</ Medium >
5765 </ Btn >
5866 < Btn onPress = { ( ) => navigation . navigate ( 'HandlingGesture' ) } >
59- < Text className = 'text-white' > Handling Gesture</ Text >
67+ < Medium className = 'text-xs text- white' > Handling Gesture</ Medium >
6068 </ Btn >
6169 < Btn onPress = { ( ) => navigation . navigate ( 'SensorAnimation' ) } >
62- < Text className = 'text-white' > Sensor Animation</ Text >
70+ < Medium className = 'text-xs text- white' > Sensor Animation</ Medium >
6371 </ Btn >
6472 < Btn onPress = { ( ) => navigation . navigate ( 'StableBox' ) } >
65- < Text className = 'text-white' > Stable Box</ Text >
73+ < Medium className = 'text-xs text- white' > Stable Box</ Medium >
6674 </ Btn >
6775 < Btn onPress = { ( ) => navigation . navigate ( 'StableWallpaper' ) } >
68- < Text className = 'text-white' > Stable Wallpaper Acc</ Text >
76+ < Medium className = 'text-xs text- white' > Stable Wallpaper Acc</ Medium >
6977 </ Btn >
7078 < Btn onPress = { ( ) => navigation . navigate ( 'CompassAnimation' ) } >
71- < Text className = 'text-white' > Compass Animation</ Text >
79+ < Medium className = 'text-xs text- white' > Compass Animation</ Medium >
7280 </ Btn >
7381 < Btn onPress = { ( ) => navigation . navigate ( 'LevelAnimation' ) } >
74- < Text className = 'text-white' > Level Animation</ Text >
82+ < Medium className = 'text-xs text- white' > Level Animation</ Medium >
7583 </ Btn >
7684 < Btn onPress = { ( ) => navigation . navigate ( 'ParallaxWallpaper' ) } >
77- < Text className = 'text-white' > Parallax Wallpaper</ Text >
85+ < Medium className = 'text-xs text- white' > Parallax Wallpaper</ Medium >
7886 </ Btn >
7987 </ View >
8088 < PaddingBottom />
@@ -88,5 +96,7 @@ const styles = StyleSheet.create({
8896 height : ICON_SIZE ,
8997 resizeMode : 'contain' ,
9098 marginTop : 100 ,
99+ backgroundColor : Colors . appIconBg ,
100+ borderRadius : 30 ,
91101 } ,
92102} )
0 commit comments