@@ -6,6 +6,7 @@ import Animated from 'react-native-reanimated'
6
6
import { useSafeAreaFrame } from 'react-native-safe-area-context'
7
7
8
8
import { SCROLL_INDICATOR_INSET_FIX } from '../../constants/constantSettings'
9
+ import { guiPlugins } from '../../constants/plugins/GuiPlugins'
9
10
import { ENV } from '../../env'
10
11
import { useHandler } from '../../hooks/useHandler'
11
12
import { lstrings } from '../../locales/strings'
@@ -111,6 +112,9 @@ export const HomeScene = (props: Props) => {
111
112
const handleSwapPress = useHandler ( ( ) => {
112
113
navigation . navigate ( 'swapTab' )
113
114
} )
115
+ const handleSpendPress = useHandler ( ( ) => {
116
+ navigation . navigate ( 'pluginView' , { plugin : guiPlugins . bitrefill } )
117
+ } )
114
118
const handleViewAssetsPress = useHandler ( ( ) => {
115
119
navigation . navigate ( 'edgeTabs' , {
116
120
screen : 'walletsTab' ,
@@ -156,6 +160,10 @@ export const HomeScene = (props: Props) => {
156
160
( ) => ( { uri : getUi4ImageUri ( theme , 'cardBackgrounds/bg-trade1' ) } ) ,
157
161
[ theme ]
158
162
)
163
+ const spendCryptoIcon = React . useMemo (
164
+ ( ) => ( { uri : getUi4ImageUri ( theme , 'cardBackgrounds/bg-spend-crypto1' ) } ) ,
165
+ [ theme ]
166
+ )
159
167
const homeRowStyle = React . useMemo (
160
168
( ) => [ styles . homeRowContainer , { height : cardSize } ] ,
161
169
[ styles , cardSize ]
@@ -270,6 +278,23 @@ export const HomeScene = (props: Props) => {
270
278
< ContentPostCarousel contentPosts = { blogPosts } />
271
279
</ >
272
280
) }
281
+ < EdgeAnim enter = { fadeInUp30 } >
282
+ < HomeTileCard
283
+ title = { lstrings . spend_crypto }
284
+ footer = { lstrings . spend_crypto_footer }
285
+ gradientBackground = { theme . spendCardGradient }
286
+ nodeBackground = {
287
+ < View style = { styles . backroundImageContainer } >
288
+ < FastImage
289
+ source = { spendCryptoIcon }
290
+ style = { styles . backgroundImage }
291
+ resizeMode = "stretch"
292
+ />
293
+ </ View >
294
+ }
295
+ onPress = { handleSpendPress }
296
+ />
297
+ </ EdgeAnim >
273
298
< >
274
299
< SectionHeader
275
300
leftTitle = { lstrings . title_markets }
0 commit comments