Commit 3a01552
committed
fix: pass onLinkPress to SelectableMarkdownText in FileMarkdownPreview
On iOS, FileMarkdownPreview rendered SelectableMarkdownText without
onLinkPress, causing link taps to fall through to raw Linking.openURL
instead of going through tryOpenExternalUrl. This left the iOS path
without ExternalUrlOpenError logging and with unhandled rejections.
Pass an onLinkPress callback that routes through tryOpenExternalUrl,
consistent with how ThreadFeed already handles native markdown links.1 parent aa8f9dc commit 3a01552
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
147 | 150 | | |
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
152 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
153 | 160 | | |
154 | 161 | | |
155 | 162 | | |
| |||
0 commit comments