From 983f33556f8f789d766abf44638292785d5600e9 Mon Sep 17 00:00:00 2001 From: chrisk325 Date: Wed, 28 Jan 2026 19:41:51 +0530 Subject: [PATCH 1/3] fix imdb logo not appearing while using mdblist --- src/components/metadata/RatingsSection.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/metadata/RatingsSection.tsx b/src/components/metadata/RatingsSection.tsx index 92b5e3b3..53f1ccd6 100644 --- a/src/components/metadata/RatingsSection.tsx +++ b/src/components/metadata/RatingsSection.tsx @@ -22,7 +22,7 @@ const BREAKPOINTS = { tv: 1440, }; -const IMDb_LOGO = 'https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/IMDB_Logo_2016.svg/575px-IMDB_Logo_2016.svg.png'; +const IMDb_LOGO = 'https://upload.wikimedia.org/wikipedia/commons/6/69/IMDB_Logo_2016.svg'; export const RATING_PROVIDERS = { imdb: { @@ -163,7 +163,7 @@ export const RatingsSection: React.FC = ({ imdbId, type }) imdb: { name: 'IMDb', icon: { uri: IMDb_LOGO }, - isImage: true, + isImage: false, color: '#F5C518', transform: (value: number) => value.toFixed(1) }, @@ -311,4 +311,4 @@ const styles = StyleSheet.create({ fontSize: 14, fontWeight: '600', }, -}); \ No newline at end of file +}); From 6f0db7303b916b99654123d076eb513432714fe8 Mon Sep 17 00:00:00 2001 From: chrisk325 Date: Wed, 28 Jan 2026 21:57:59 +0530 Subject: [PATCH 2/3] better approach for imdb logo using remote svg lib --- src/components/metadata/RatingsSection.tsx | 37 +++++++++++++++------- 1 file changed, 26 insertions(+), 11 deletions(-) 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} )} From 504a34df24730505b33edab94ff515a4b4149f72 Mon Sep 17 00:00:00 2001 From: chrisk325 Date: Wed, 28 Jan 2026 22:30:52 +0530 Subject: [PATCH 3/3] small fix --- src/components/metadata/RatingsSection.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/metadata/RatingsSection.tsx b/src/components/metadata/RatingsSection.tsx index c87c6a4e..3bfefba9 100644 --- a/src/components/metadata/RatingsSection.tsx +++ b/src/components/metadata/RatingsSection.tsx @@ -250,6 +250,7 @@ export const RatingsSection: React.FC = ({ imdbId, type }) uri={config.icon as string} width={source === 'imdb' ? iconSize * 2 : iconSize} height={iconSize} + style={{ marginRight: iconTextGap }} /> ) : config.isImage ? (