11import React from 'react' ;
2- import {
3- Text ,
4- StyleSheet ,
5- TouchableOpacity ,
6- StyleProp ,
7- ViewStyle ,
8- View ,
9- } from 'react-native' ;
10- import { Icon , IconProps } from '@reown/appkit-ui-react-native' ;
2+ import { StyleSheet , StyleProp , ViewStyle , View } from 'react-native' ;
3+ import { Icon , IconProps , Pressable , Text } from '@reown/appkit-ui-react-native' ;
114
125import { useTheme } from '@/hooks/useTheme' ;
136
@@ -21,21 +14,26 @@ export interface CardProps {
2114
2215export function Card ( { title, value, onPress, icon, style} : CardProps ) {
2316 const Theme = useTheme ( ) ;
24- const backgroundColor = Theme [ 'bg-175 ' ] ;
17+ const backgroundColor = Theme [ 'gray-glass-005 ' ] ;
2518
2619 return (
27- < TouchableOpacity
20+ < Pressable
2821 disabled = { ! onPress }
2922 style = { [ styles . container , { backgroundColor} , style ] }
23+ bounceScale = { 0.98 }
3024 onPress = { onPress } >
3125 < View >
32- < Text style = { [ styles . title , { color : Theme [ 'fg-100' ] } ] } > { title } </ Text >
26+ < Text variant = "small-600" style = { { color : Theme [ 'fg-100' ] } } >
27+ { title }
28+ </ Text >
3329 { value && (
34- < Text style = { [ styles . value , { color : Theme [ 'fg-150' ] } ] } > { value } </ Text >
30+ < Text variant = "small-500" style = { { color : Theme [ 'fg-150' ] } } >
31+ { value }
32+ </ Text >
3533 ) }
3634 </ View >
3735 { icon && < Icon name = { icon } size = "sm" color = { 'fg-100' } /> }
38- </ TouchableOpacity >
36+ </ Pressable >
3937 ) ;
4038}
4139
@@ -49,12 +47,4 @@ const styles = StyleSheet.create({
4947 alignItems : 'center' ,
5048 justifyContent : 'space-between' ,
5149 } ,
52- title : {
53- fontSize : 14 ,
54- fontWeight : 'bold' ,
55- } ,
56- value : {
57- fontSize : 14 ,
58- fontWeight : '500' ,
59- } ,
6050} ) ;
0 commit comments