diff --git a/src/components/ImageWithLoading.tsx b/src/components/ImageWithLoading.tsx index d72184121850..a46be9f95e0b 100644 --- a/src/components/ImageWithLoading.tsx +++ b/src/components/ImageWithLoading.tsx @@ -36,6 +36,7 @@ function ImageWithLoading({ resizeMode, onLoad, onLayout, + style, ...rest }: ImageWithSizeLoadingProps) { const styles = useThemeStyles(); @@ -85,7 +86,7 @@ function ImageWithLoading({ { if (isLoadedRef.current ?? isLoading) { return; diff --git a/src/components/ReceiptImage/index.tsx b/src/components/ReceiptImage/index.tsx index 1453f0221288..481fba2245d5 100644 --- a/src/components/ReceiptImage/index.tsx +++ b/src/components/ReceiptImage/index.tsx @@ -235,7 +235,7 @@ function ReceiptImage({ lastUpdateWidthTimestampRef.current = e.timeStamp; }} source={typeof source === 'string' ? {uri: source} : source} - style={[style ?? [styles.w100, styles.h100], styles.overflowHidden]} + style={styles.flex1} isAuthTokenRequired={!!isAuthTokenRequired} loadingIconSize={loadingIconSize} loadingIndicatorStyles={loadingIndicatorStyles} diff --git a/src/styles/index.ts b/src/styles/index.ts index 19fba200fd0a..57a4427eae78 100644 --- a/src/styles/index.ts +++ b/src/styles/index.ts @@ -5396,6 +5396,7 @@ const staticStyles = (theme: ThemeColors) => flexibleHeight: { height: 'auto', minHeight: 200, + flex: 1, }, receiptCellLoadingContainer: {