From e86188000147e0178ac6ca971f061b37daa40132 Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Sun, 1 Feb 2026 19:43:32 +0000
Subject: fix(mobile): migrate from RN image to expo-image

---
 apps/mobile/components/ui/Avatar.tsx | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

(limited to 'apps/mobile/components/ui/Avatar.tsx')

diff --git a/apps/mobile/components/ui/Avatar.tsx b/apps/mobile/components/ui/Avatar.tsx
index 923c634e..ed31df23 100644
--- a/apps/mobile/components/ui/Avatar.tsx
+++ b/apps/mobile/components/ui/Avatar.tsx
@@ -1,5 +1,6 @@
 import * as React from "react";
-import { Image, View } from "react-native";
+import { View } from "react-native";
+import { Image } from "expo-image";
 import { Text } from "@/components/ui/Text";
 import { useAssetUrl } from "@/lib/hooks";
 import { cn } from "@/lib/utils";
@@ -9,7 +10,6 @@ interface AvatarProps {
   name?: string | null;
   size?: number;
   className?: string;
-  imageClassName?: string;
   fallbackClassName?: string;
 }
 
@@ -22,7 +22,6 @@ export function Avatar({
   name,
   size = 40,
   className,
-  imageClassName,
   fallbackClassName,
 }: AvatarProps) {
   const [imageError, setImageError] = React.useState(false);
@@ -78,8 +77,8 @@ export function Avatar({
       ) : (
         <Image
           source={imageUrl}
-          className={cn("h-full w-full", imageClassName)}
-          style={{ resizeMode: "cover" }}
+          style={{ width: "100%", height: "100%" }}
+          contentFit="cover"
           onError={() => setImageError(true)}
         />
       )}
-- 
cgit v1.2.3-70-g09d2

