@@ -6,6 +6,7 @@ import Animated from 'react-native-reanimated'
66import { useSafeAreaFrame } from 'react-native-safe-area-context'
77
88import { SCROLL_INDICATOR_INSET_FIX } from '../../constants/constantSettings'
9+ import { guiPlugins } from '../../constants/plugins/GuiPlugins'
910import { ENV } from '../../env'
1011import { useHandler } from '../../hooks/useHandler'
1112import { lstrings } from '../../locales/strings'
@@ -111,6 +112,9 @@ export const HomeScene = (props: Props) => {
111112 const handleSwapPress = useHandler ( ( ) => {
112113 navigation . navigate ( 'swapTab' )
113114 } )
115+ const handleSpendPress = useHandler ( ( ) => {
116+ navigation . navigate ( 'pluginView' , { plugin : guiPlugins . bitrefill } )
117+ } )
114118 const handleViewAssetsPress = useHandler ( ( ) => {
115119 navigation . navigate ( 'edgeTabs' , {
116120 screen : 'walletsTab' ,
@@ -156,6 +160,10 @@ export const HomeScene = (props: Props) => {
156160 ( ) => ( { uri : getUi4ImageUri ( theme , 'cardBackgrounds/bg-trade1' ) } ) ,
157161 [ theme ]
158162 )
163+ const spendCryptoIcon = React . useMemo (
164+ ( ) => ( { uri : getUi4ImageUri ( theme , 'cardBackgrounds/bg-spend-crypto1' ) } ) ,
165+ [ theme ]
166+ )
159167 const homeRowStyle = React . useMemo (
160168 ( ) => [ styles . homeRowContainer , { height : cardSize } ] ,
161169 [ styles , cardSize ]
@@ -270,6 +278,23 @@ export const HomeScene = (props: Props) => {
270278 < ContentPostCarousel contentPosts = { blogPosts } />
271279 </ >
272280 ) }
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 . spendBackgroundImageContainer } >
288+ < FastImage
289+ source = { spendCryptoIcon }
290+ style = { styles . spendBackgroundImage }
291+ resizeMode = "contain"
292+ />
293+ </ View >
294+ }
295+ onPress = { handleSpendPress }
296+ />
297+ </ EdgeAnim >
273298 < >
274299 < SectionHeader
275300 leftTitle = { lstrings . title_markets }
@@ -317,6 +342,15 @@ const getStyles = cacheStyles((theme: Theme) => ({
317342 aspectRatio : 1 ,
318343 width : '100%'
319344 } ,
345+ spendBackgroundImageContainer : {
346+ alignItems : 'flex-end' ,
347+ justifyContent : 'center' ,
348+ opacity : 0.5
349+ } ,
350+ spendBackgroundImage : {
351+ aspectRatio : 1 ,
352+ height : '100%'
353+ } ,
320354 homeRowContainer : {
321355 flexDirection : 'row' ,
322356 // flexGrow: 1,
0 commit comments