From 362be3008aa8b036c4c448a86e459044af8784c2 Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Sun, 6 Jul 2025 22:02:07 +0000
Subject: fix(mobile): Fix crash when bookmark doesn't have archive or
 screenshot. Fixes #1584

---
 apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

(limited to 'apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx')

diff --git a/apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx b/apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx
index 5e1e7aa7..03999c3e 100644
--- a/apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx
+++ b/apps/mobile/components/bookmarks/BookmarkLinkPreview.tsx
@@ -1,5 +1,5 @@
 import { useState } from "react";
-import { Pressable, View } from "react-native";
+import { Pressable, Text, View } from "react-native";
 import ImageView from "react-native-image-viewing";
 import WebView from "react-native-webview";
 import { WebViewSourceUri } from "react-native-webview/lib/WebViewTypes";
@@ -130,7 +130,9 @@ export function BookmarkLinkArchivePreview({
 
   if (!asset) {
     return (
-      <View className="flex-1 bg-background">Asset has no offline archive</View>
+      <View className="flex-1 bg-background">
+        <Text>Asset has no offline archive</Text>
+      </View>
     );
   }
 
@@ -159,7 +161,9 @@ export function BookmarkLinkScreenshotPreview({
 
   if (!asset) {
     return (
-      <View className="flex-1 bg-background">Asset has no screenshot</View>
+      <View className="flex-1 bg-background">
+        <Text>Asset has no screenshot</Text>
+      </View>
     );
   }
 
-- 
cgit v1.2.3-70-g09d2

