You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 167eb6e
Browse filesBrowse the repository at this point in the historyBrowse files
Offer another app when a document's preview fails on iOS (#1815)
WebKit's Quick Look conversion of a document it can't read, such as a damaged .ppt, fails after the load is committed (didFailNavigation, QuickLookErrorDomain). react-native-webview handled only provisional failures, so File detail never heard of it and showed WebKit's own "This file cannot be previewed" page with nothing to do.
The webview patch now reports committed failures through onError, and File detail shows its preview-failed state for them, as for an unreadable PDF. That state now offers the file to another app (share sheet on iOS, Quick Look on the Mac, the chooser on Android, the default app on Windows and Linux) next to Download Again.
The patch is native, and 19.1.0's builds are made without it, so the app and runtime versions move to 19.2.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: patches/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,6 +154,7 @@ Mac Catalyst: leaves the pan gesture alone when KVO already subclassed the scrol
154
154
## `react-native-webview`
155
155
156
156
- iOS: JavaScript alerts present from a view controller that is on screen, or are dismissed (crash); a page loaded at its top stays below a translucent header until scrolled (WebKit fits an image to the width and leaves it at offset 0).
157
+
- iOS: a load that fails after it was committed (`didFailNavigation`) reaches `onError` like one that fails before (`didFailProvisionalNavigation`). WebKit's Quick Look conversion fails that way for a document it can't read (`QuickLookErrorDomain`), which otherwise showed WebKit's own error page and never ended the load, so File detail couldn't offer anything better.
157
158
- Types: props no longer collapse to `never` ([#3977](https://github.com/react-native-webview/react-native-webview/issues/3977)).
0 commit comments