Skip to content

Commit b40aee8

Browse files
Update React Native login guide for AppDelegate setup in Swift and Objective-C++ (#10521)
* Update React Native login guide for AppDelegate setup in Swift and Objective-C++ * Update iOS AppDelegate setup instructions for React Native integration * Fix capitalization and formatting in iOS AppDelegate setup instructions
1 parent 3b9cec9 commit b40aee8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

articles/quickstart/native/react-native/00-login.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,16 @@ At runtime, the `applicationId` value will automatically update with your applic
8484
:::
8585

8686
### Configure iOS
87+
#### AppDelegate Setup (Choose Based on Architecture)
8788

88-
In the file `ios/<YOUR PROJECT>/AppDelegate.mm` add the following:
89+
If you're using (Swift - `ios/<YOUR PROJECT>/AppDelegat.swift`) add the following in `AppDelegate` class:
90+
91+
```swift
92+
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
93+
return RCTLinkingManager.application(app, open: url, options: options)
94+
}
95+
```
96+
If you're using (Objective-C++ - `ios/<YOUR PROJECT>/AppDelegate.mm`) add the following:
8997

9098
```objc
9199
#import <React/RCTLinkingManager.h>

0 commit comments

Comments
 (0)