diff --git a/front/Theme.tsx b/front/Theme.tsx index 6d7fc57..9c19074 100644 --- a/front/Theme.tsx +++ b/front/Theme.tsx @@ -4,9 +4,15 @@ import { useEffect } from 'react'; const ThemeProvider = ({ children }: { children: JSX.Element }) => { const colorScheme = useColorScheme(); + const config = { + dependencies: { + "linear-gradient": require("expo-linear-gradient").LinearGradient, + }, + }; return ( { return ( - + + + + {/* {artistData?.name} { height={isMobileView ? 200 : 300} width={'100%'} resizeMode='cover' - /> + /> */} {artistData?.name} @@ -144,7 +170,7 @@ const ArtistDetailsView = ({ artistId }: any) => { } - + {/* */} ); }; diff --git a/front/views/GenreDetailsView.tsx b/front/views/GenreDetailsView.tsx index ba4f42c..53700bf 100644 --- a/front/views/GenreDetailsView.tsx +++ b/front/views/GenreDetailsView.tsx @@ -124,7 +124,13 @@ const GenreDetailsView = ({ genreId }: any) => { size={'100%'} height={isMobileView ? 200 : 300} width={'100%'} - backgroundColor={colorRange[Math.floor(Math.random() * 5)]?.code ?? '#364fc7'} + // backgroundColor={colorRange[Math.floor(Math.random() * 5)]?.code ?? '#364fc7'} + bg={{ + linearGradient: { + colors: [colorRange[Math.floor(Math.random() * 5)]?.code ?? '#364fc7', 'black'], + start: [0, 0], + end: [0, 1], + },}} />