From 73e332df6152ef99945d5e2a8b1a0a1ab1c80f13 Mon Sep 17 00:00:00 2001 From: Subhankar Maiti Date: Wed, 21 May 2025 10:40:39 +0530 Subject: [PATCH] Update iOS configuration instructions for React Native login tutorial to include AppDelegate setup for Swift and Objective-C++ --- articles/quickstart/native/react-native/interactive.md | 6 +++++- .../quickstart/native/react-native/00-login.md | 10 +++++++++- .../quickstart/native/react-native/00-login.md | 10 +++++++++- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/articles/quickstart/native/react-native/interactive.md b/articles/quickstart/native/react-native/interactive.md index 30f176e236..7aa4ded33c 100644 --- a/articles/quickstart/native/react-native/interactive.md +++ b/articles/quickstart/native/react-native/interactive.md @@ -69,7 +69,11 @@ pod install -

At runtime, the applicationId value will automatically update with your application's package name or ID (e.g. com.example.app). You can change this value from the build.gradle file. You can also check it at the top of your AndroidManifest.xml file.

Configure iOS

In the file ios/<YOUR PROJECT>/AppDelegate.mm, add the following:

#import <React/RCTLinkingManager.h>
+

At runtime, the applicationId value will automatically update with your application's package name or ID (e.g. com.example.app). You can change this value from the build.gradle file. You can also check it at the top of your AndroidManifest.xml file.

+

Configure iOS

AppDelegate Setup (Choose Based on Architecture)

If you're using (Swift - ios/<YOUR PROJECT>/AppDelegat.swift) add the following in `AppDelegate` class:

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
+  return RCTLinkingManager.application(app, open: url, options: options)
+}

+

If you're using (Objective-C++ - ios/<YOUR PROJECT>/AppDelegate.mm) add the following:

#import <React/RCTLinkingManager.h>
 
 
 
diff --git a/fr-ca/articles/quickstart/native/react-native/00-login.md b/fr-ca/articles/quickstart/native/react-native/00-login.md
index c54aef2778..75f4499ce0 100644
--- a/fr-ca/articles/quickstart/native/react-native/00-login.md
+++ b/fr-ca/articles/quickstart/native/react-native/00-login.md
@@ -84,8 +84,16 @@ At runtime, the `applicationId` value will automatically update with your applic
 :::
 
 ### Configure iOS
+#### AppDelegate Setup (Choose Based on Architecture)
 
-In the file `ios//AppDelegate.mm` add the following:
+If you're using (Swift - `ios//AppDelegat.swift`) add the following in `AppDelegate` class:
+
+```swift
+func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
+  return RCTLinkingManager.application(app, open: url, options: options)
+}
+```
+If you're using (Objective-C++ - `ios//AppDelegate.mm`) add the following:
 
 ```objc
 #import 
diff --git a/ja-jp/articles/quickstart/native/react-native/00-login.md b/ja-jp/articles/quickstart/native/react-native/00-login.md
index c54aef2778..75f4499ce0 100644
--- a/ja-jp/articles/quickstart/native/react-native/00-login.md
+++ b/ja-jp/articles/quickstart/native/react-native/00-login.md
@@ -84,8 +84,16 @@ At runtime, the `applicationId` value will automatically update with your applic
 :::
 
 ### Configure iOS
+#### AppDelegate Setup (Choose Based on Architecture)
 
-In the file `ios//AppDelegate.mm` add the following:
+If you're using (Swift - `ios//AppDelegat.swift`) add the following in `AppDelegate` class:
+
+```swift
+func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
+  return RCTLinkingManager.application(app, open: url, options: options)
+}
+```
+If you're using (Objective-C++ - `ios//AppDelegate.mm`) add the following:
 
 ```objc
 #import