diff options
| author | Mohamed Bassem <me@mbassem.com> | 2026-02-01 19:43:32 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2026-02-01 19:43:32 +0000 |
| commit | e86188000147e0178ac6ca971f061b37daa40132 (patch) | |
| tree | 654b20fd932d9ca4f93ef4e2bfc85ff6d9fd624c /apps/mobile/lib/hooks.ts | |
| parent | b16fa5e21a3852151c6b3d3d5569154d863d1795 (diff) | |
| download | karakeep-e86188000147e0178ac6ca971f061b37daa40132.tar.zst | |
fix(mobile): migrate from RN image to expo-image
Diffstat (limited to 'apps/mobile/lib/hooks.ts')
| -rw-r--r-- | apps/mobile/lib/hooks.ts | 8 |
1 files changed, 6 insertions, 2 deletions
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<string, string>; +} + +export function useAssetUrl(assetId: string): AssetSource { const { settings } = useAppSettings(); return { uri: `${settings.address}/api/assets/${assetId}`, |
