diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx index 67ccb5c..6730dea 100644 --- a/app/(tabs)/index.tsx +++ b/app/(tabs)/index.tsx @@ -75,7 +75,7 @@ export default function HomeScreen() { }} > - {item.public_id.replace("wallpaper/", "")} + {item.display_name} diff --git a/app/wallpaper.tsx b/app/wallpaper.tsx index 792e92a..9bc2aa1 100644 --- a/app/wallpaper.tsx +++ b/app/wallpaper.tsx @@ -16,7 +16,7 @@ export default function WallpaperPage() { return null; } - const imageName = selectedWallpaper.public_id.replace("wallpaper/", ""); + const imageName = selectedWallpaper.display_name; async function downloadWallpaper() { if (!selectedWallpaper) { diff --git a/cloudinary/cloudinary.ts b/cloudinary/cloudinary.ts index f00be8a..f72d94a 100644 --- a/cloudinary/cloudinary.ts +++ b/cloudinary/cloudinary.ts @@ -1,6 +1,7 @@ interface ImageAsset { asset_id: string; public_id: string; + display_name: string; format: "jpg" | "png" | "heic"; version: number; resource_type: "image";