From c6b137cac9fea8cb0124d0a374e8f60316895d16 Mon Sep 17 00:00:00 2001 From: Christoph Purrer Date: Fri, 28 Aug 2026 08:29:36 -0700 Subject: [PATCH] Remove unimplemented sendIntent from RCTLinkingManager (#58154) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Pull Request resolved: https://github.com/react/react-native/pull/58154 `sendIntent` is an Android-only Linking API. On iOS the JS layer never reaches the native module at all — `Linking.sendIntent()` returns `Promise.reject(new Error('Unsupported'))` for any non-Android platform, so the exported ObjC method was unreachable. Its body was only `RCTLogError(@"Not implemented: ...")`. It is also absent from `NativeLinkingManagerSpec`, the codegen'd protocol `RCTLinkingManager` conforms to, so a TurboModule call could not dispatch to it either: only spec methods appear on `NativeLinkingManagerSpecJSI`. The `sendIntent` declaration lives on the separate Android spec instead. Removing the dead stub. No behaviour change — the JS-visible rejection on iOS is produced in `Linking.js` and is untouched. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D117534390 fbshipit-source-id: 9050da88e0e7189962639c2b60b43bf4026bae22 --- .../react-native/Libraries/LinkingIOS/RCTLinkingManager.mm | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/react-native/Libraries/LinkingIOS/RCTLinkingManager.mm b/packages/react-native/Libraries/LinkingIOS/RCTLinkingManager.mm index 0186376a481..f25ad54a5f4 100644 --- a/packages/react-native/Libraries/LinkingIOS/RCTLinkingManager.mm +++ b/packages/react-native/Libraries/LinkingIOS/RCTLinkingManager.mm @@ -233,13 +233,6 @@ RCT_EXPORT_MODULE() }]; } -RCT_EXPORT_METHOD( - sendIntent : (NSString *)action extras : (NSArray *_Nullable)extras resolve : (RCTPromiseResolveBlock) - resolve reject : (RCTPromiseRejectBlock)reject) -{ - RCTLogError(@"Not implemented: %@", NSStringFromSelector(_cmd)); -} - - (std::shared_ptr)getTurboModule: (const facebook::react::ObjCTurboModule::InitParams &)params {