diff options
| author | MohamedBassem <me@mbassem.com> | 2024-08-24 18:13:02 +0300 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-08-24 18:35:35 +0300 |
| commit | 0584ad2bd8f486a0aaff7d8c96007d05c88a9a5e (patch) | |
| tree | 9a5266f1bfc9eb635423f2c962674c77dc0b7642 /apps/mobile/components/bookmarks/BookmarkTextMarkdown.tsx | |
| parent | dc68b44933008c2e319e2688552dd2557a97b50e (diff) | |
| download | karakeep-0584ad2bd8f486a0aaff7d8c96007d05c88a9a5e.tar.zst | |
fix(mobile): Allow expanding the text by clicking on bookmark card
Diffstat (limited to 'apps/mobile/components/bookmarks/BookmarkTextMarkdown.tsx')
| -rw-r--r-- | apps/mobile/components/bookmarks/BookmarkTextMarkdown.tsx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/mobile/components/bookmarks/BookmarkTextMarkdown.tsx b/apps/mobile/components/bookmarks/BookmarkTextMarkdown.tsx new file mode 100644 index 00000000..80ea007c --- /dev/null +++ b/apps/mobile/components/bookmarks/BookmarkTextMarkdown.tsx @@ -0,0 +1,21 @@ +import Markdown from "react-native-markdown-display"; +import { TailwindResolver } from "@/components/TailwindResolver"; + +export default function BookmarkTextMarkdown({ text }: { text: string }) { + return ( + <TailwindResolver + className="text-foreground" + comp={(styles) => ( + <Markdown + style={{ + text: { + color: styles?.color?.toString(), + }, + }} + > + {text} + </Markdown> + )} + /> + ); +} |
