A framework for building native applications using React
Resolve sendIntent call, reject on exception thrown (#50538)
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
P
Peter Abbondanzo committed
6609ba98e5f738cb8746c7ccfda1072cfa05f986
Parent: a6f1c71
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 4/8/2025, 3:54:33 PM