From e86188000147e0178ac6ca971f061b37daa40132 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 1 Feb 2026 19:43:32 +0000 Subject: fix(mobile): migrate from RN image to expo-image --- apps/mobile/lib/hooks.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'apps/mobile/lib/hooks.ts') diff --git a/apps/mobile/lib/hooks.ts b/apps/mobile/lib/hooks.ts index 3540df23..c3cb9d22 100644 --- a/apps/mobile/lib/hooks.ts +++ b/apps/mobile/lib/hooks.ts @@ -1,10 +1,14 @@ -import { ImageURISource } from "react-native"; import { useQuery } from "@tanstack/react-query"; import useAppSettings from "./settings"; import { buildApiHeaders } from "./utils"; -export function useAssetUrl(assetId: string): ImageURISource { +interface AssetSource { + uri: string; + headers: Record; +} + +export function useAssetUrl(assetId: string): AssetSource { const { settings } = useAppSettings(); return { uri: `${settings.address}/api/assets/${assetId}`, -- cgit v1.2.3-70-g09d2