diff --git a/src/components/metadata/RatingsSection.tsx b/src/components/metadata/RatingsSection.tsx index 53f1ccd6..c87c6a4e 100644 --- a/src/components/metadata/RatingsSection.tsx +++ b/src/components/metadata/RatingsSection.tsx @@ -1,4 +1,5 @@ import React, { useEffect, useState, useRef, useCallback, useMemo } from 'react'; +import { SvgUri } from 'react-native-svg'; import { View, Text, StyleSheet, ActivityIndicator, Image, Animated, Dimensions } from 'react-native'; import { MaterialIcons as MaterialIconsWrapper } from '@expo/vector-icons'; import { useTheme } from '../../contexts/ThemeContext'; @@ -162,8 +163,8 @@ export const RatingsSection: React.FC = ({ imdbId, type }) const ratingConfig = { imdb: { name: 'IMDb', - icon: { uri: IMDb_LOGO }, - isImage: false, + icon: IMDb_LOGO, + isRemoteSvg: true, color: '#F5C518', transform: (value: number) => value.toFixed(1) }, @@ -244,10 +245,23 @@ export const RatingsSection: React.FC = ({ imdbId, type }) return ( - {config.isImage ? ( + {config.isRemoteSvg ? ( + + ) : config.isImage ? ( ) : config.icon ? ( @@ -258,13 +272,14 @@ export const RatingsSection: React.FC = ({ imdbId, type }) })} ) : ( - // Text fallback - + {config.name} )}