mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50538 Promises created from `Linking.sendIntent` calls never resolve, leaving them dangling. This change fixes the issue in two spots: 1. By calling promise.resolve directly after the startActivity call 1. By wrapping startActivity in a try/catch so any exceptions thrown are forwarded to the promise as a rejection Changelog: [Android][Fixed] - Ensure Linking.sendIntent promises resolve or reject Reviewed By: NickGerleman Differential Revision: D72606918 fbshipit-source-id: cd437bf65bb631bc04f99b4d2e3d637f7e98b25e