mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-02 16:07:12 +00:00
Follow-up to the direct-view fix. No behaviour change on the happy path, but the handoff is now easier to reason about and covered by tests. - Use `File.contentUri` from the expo-file-system 19 API instead of the legacy `getContentUriAsync`, dropping the `expo-file-system/legacy` import. Same FileProvider, one less round trip through the bridge. - Pull the intent launch into `openWithViewer`, which returns false when the handoff didn't happen, so the fallback reads as a decision rather than as an empty catch. It also no longer swallows the reason silently. - Rewrite the expo-sharing comment above `shareAttachment`: it warns against pre-translating to a content URI, which is still true for every `Sharing.shareAsync` call but is exactly what the new VIEW path has to do. Note why `downloadAttachment` keeps the share sheet as well. - Record why FLAG_ACTIVITY_NEW_TASK is deliberately absent: the module launches via startActivityForResult, which a new task would cancel.