diff --git a/patches/react-compiler-healthcheck+0.0.0-experimental-b130d5f-20240625+001+json.patch b/patches/react-compiler-healthcheck+0.0.0-experimental-b130d5f-20240625+002+json.patch similarity index 100% rename from patches/react-compiler-healthcheck+0.0.0-experimental-b130d5f-20240625+001+json.patch rename to patches/react-compiler-healthcheck+0.0.0-experimental-b130d5f-20240625+002+json.patch diff --git a/patches/react-compiler-healthcheck+0.0.0-experimental-b130d5f-20240625+002+enable-ref-identifiers.patch b/patches/react-compiler-healthcheck+0.0.0-experimental-b130d5f-20240625+003+enable-ref-identifiers.patch similarity index 100% rename from patches/react-compiler-healthcheck+0.0.0-experimental-b130d5f-20240625+002+enable-ref-identifiers.patch rename to patches/react-compiler-healthcheck+0.0.0-experimental-b130d5f-20240625+003+enable-ref-identifiers.patch diff --git a/patches/react-native+0.73.4+014+fixPath.patch b/patches/react-native+0.73.4+015+fixPath.patch similarity index 100% rename from patches/react-native+0.73.4+014+fixPath.patch rename to patches/react-native+0.73.4+015+fixPath.patch diff --git a/patches/react-native+0.73.4+014+iOSCoreAnimationBorderRendering.patch b/patches/react-native+0.73.4+016+iOSCoreAnimationBorderRendering.patch similarity index 100% rename from patches/react-native+0.73.4+014+iOSCoreAnimationBorderRendering.patch rename to patches/react-native+0.73.4+016+iOSCoreAnimationBorderRendering.patch diff --git a/patches/react-native+0.73.4+015+copyStateOnClone.patch b/patches/react-native+0.73.4+017+copyStateOnClone.patch similarity index 100% rename from patches/react-native+0.73.4+015+copyStateOnClone.patch rename to patches/react-native+0.73.4+017+copyStateOnClone.patch diff --git a/patches/react-native+0.73.4+015+fixIOSWebViewCrash.patch b/patches/react-native+0.73.4+018+fixIOSWebViewCrash.patch similarity index 100% rename from patches/react-native+0.73.4+015+fixIOSWebViewCrash.patch rename to patches/react-native+0.73.4+018+fixIOSWebViewCrash.patch diff --git a/patches/react-native+0.73.4+016+fixClippedEmojis.patch b/patches/react-native+0.73.4+019+fixClippedEmojis.patch similarity index 100% rename from patches/react-native+0.73.4+016+fixClippedEmojis.patch rename to patches/react-native+0.73.4+019+fixClippedEmojis.patch diff --git a/patches/react-native+0.73.4+016+iOS-textinput-onscroll-event.patch b/patches/react-native+0.73.4+020+iOS-textinput-onscroll-event.patch similarity index 100% rename from patches/react-native+0.73.4+016+iOS-textinput-onscroll-event.patch rename to patches/react-native+0.73.4+020+iOS-textinput-onscroll-event.patch diff --git a/patches/react-native+0.73.4+017+iOS-fix-whitespace-support-sourcemap.patch b/patches/react-native+0.73.4+021+iOS-fix-whitespace-support-sourcemap.patch similarity index 100% rename from patches/react-native+0.73.4+017+iOS-fix-whitespace-support-sourcemap.patch rename to patches/react-native+0.73.4+021+iOS-fix-whitespace-support-sourcemap.patch diff --git a/patches/react-native+0.73.4+018+textInputClear.patch b/patches/react-native+0.73.4+022+textInputClear.patch similarity index 100% rename from patches/react-native+0.73.4+018+textInputClear.patch rename to patches/react-native+0.73.4+022+textInputClear.patch diff --git a/patches/react-native+0.73.4+023+iOS-fix-adjustFontSizeToFit-new-architecture.patch b/patches/react-native+0.73.4+023+iOS-fix-adjustFontSizeToFit-new-architecture.patch new file mode 100644 index 000000000000..7fe379f6da2c --- /dev/null +++ b/patches/react-native+0.73.4+023+iOS-fix-adjustFontSizeToFit-new-architecture.patch @@ -0,0 +1,16 @@ +diff --git a/node_modules/react-native/Libraries/Text/Text/NSTextStorage+FontScaling.m b/node_modules/react-native/Libraries/Text/Text/NSTextStorage+FontScaling.m +index ee391a2..cdd6358 100644 +--- a/node_modules/react-native/Libraries/Text/Text/NSTextStorage+FontScaling.m ++++ b/node_modules/react-native/Libraries/Text/Text/NSTextStorage+FontScaling.m +@@ -19,6 +19,11 @@ - (void)scaleFontSizeToFitSize:(CGSize)size + minimumFontSize:(CGFloat)minimumFontSize + maximumFontSize:(CGFloat)maximumFontSize + { ++ // Don't scale the font if it already fits ++ if ([self compareToSize:size thresholdRatio:0.01] & RCTTextSizeComparisonSmaller) { ++ return; ++ } ++ + CGFloat bottomRatio = 1.0 / 128.0; + CGFloat topRatio = 128.0; + CGFloat ratio = 1.0; diff --git a/patches/react-native-reanimated+3.8.1.patch b/patches/react-native-reanimated+3.8.1+001+initial.patch similarity index 100% rename from patches/react-native-reanimated+3.8.1.patch rename to patches/react-native-reanimated+3.8.1+001+initial.patch diff --git a/patches/react-native-reanimated+3.8.1+001+fix-boost-dependency.patch b/patches/react-native-reanimated+3.8.1+002+fix-boost-dependency.patch similarity index 100% rename from patches/react-native-reanimated+3.8.1+001+fix-boost-dependency.patch rename to patches/react-native-reanimated+3.8.1+002+fix-boost-dependency.patch diff --git a/patches/react-native-reanimated+3.8.1+002+copy-state.patch b/patches/react-native-reanimated+3.8.1+003+copy-state.patch similarity index 100% rename from patches/react-native-reanimated+3.8.1+002+copy-state.patch rename to patches/react-native-reanimated+3.8.1+003+copy-state.patch diff --git a/patches/react-native-reanimated+3.8.1+003+fix-strict-mode.patch b/patches/react-native-reanimated+3.8.1+004+fix-strict-mode.patch similarity index 100% rename from patches/react-native-reanimated+3.8.1+003+fix-strict-mode.patch rename to patches/react-native-reanimated+3.8.1+004+fix-strict-mode.patch diff --git a/src/components/EReceiptThumbnail.tsx b/src/components/EReceiptThumbnail.tsx index a8d636db460b..8e0f589cc34d 100644 --- a/src/components/EReceiptThumbnail.tsx +++ b/src/components/EReceiptThumbnail.tsx @@ -57,8 +57,7 @@ const backgroundImages = { function EReceiptThumbnail({transaction, borderRadius, fileExtension, isReceiptThumbnail = false, centerIconV = true, iconSize = 'large'}: EReceiptThumbnailProps) { const styles = useThemeStyles(); const StyleUtils = useStyleUtils(); - const {tripIcon, tripBGColor} = TripReservationUtils.getTripEReceiptData(transaction); - const colorCode = tripBGColor ?? (isReceiptThumbnail ? StyleUtils.getFileExtensionColorCode(fileExtension) : StyleUtils.getEReceiptColorCode(transaction)); + const colorCode = isReceiptThumbnail ? StyleUtils.getFileExtensionColorCode(fileExtension) : StyleUtils.getEReceiptColorCode(transaction); const backgroundImage = useMemo(() => backgroundImages[colorCode], [colorCode]); @@ -68,6 +67,7 @@ function EReceiptThumbnail({transaction, borderRadius, fileExtension, isReceiptT const transactionDetails = ReportUtils.getTransactionDetails(transaction); const transactionMCCGroup = transactionDetails?.mccGroup; const MCCIcon = transactionMCCGroup ? MCCIcons[`${transactionMCCGroup}`] : undefined; + const tripIcon = TripReservationUtils.getTripEReceiptIcon(transaction); let receiptIconWidth: number = variables.eReceiptIconWidth; let receiptIconHeight: number = variables.eReceiptIconHeight; @@ -143,7 +143,7 @@ function EReceiptThumbnail({transaction, borderRadius, fileExtension, isReceiptT fill={primaryColor} /> ) : null} - {tripIcon ? ( + {!MCCIcon && tripIcon ? (