Skip to content

fix(ios): avoid WhatsApp share crash on iOS 13+ with UIScene#1729

Open
zhfwch wants to merge 1 commit intoreact-native-share:mainfrom
zhfwch:codex/pr-whatsapp-presentation-view
Open

fix(ios): avoid WhatsApp share crash on iOS 13+ with UIScene#1729
zhfwch wants to merge 1 commit intoreact-native-share:mainfrom
zhfwch:codex/pr-whatsapp-presentation-view

Conversation

@zhfwch
Copy link

@zhfwch zhfwch commented Mar 10, 2026

  • UIDocumentInteractionController is currently presented from UIApplication.delegate.window.rootViewController.view.
  • On iOS 13+, apps that adopt UIScene may not have a valid app-delegate window, and this can crash when presenting the WhatsApp share menu.
  • This change resolves the foreground active window from the current scene, walks to the top presented view controller, and presents the menu from that view instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant