Skip to content

Commit 11f280e

Browse files
Update iOS AppDelegate setup instructions for React Native integration
1 parent e94aa9b commit 11f280e

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

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

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -86,24 +86,11 @@ At runtime, the `applicationId` value will automatically update with your applic
8686
### Configure iOS
8787
#### AppDelegate Setup (Choose Based on Architecture)
8888

89-
If You're Using (Swift - `ios/<YOUR PROJECT>/AppDelegat.swift`) update the following:
89+
If You're Using (Swift - `ios/<YOUR PROJECT>/AppDelegat.swift`) add the following in `AppDelegate` class:
9090

9191
```swift
92-
93-
class AppDelegate: RCTAppDelegate {
94-
// ... your existing code ...
95-
// update bundleURL method -> add return
96-
override func bundleURL() -> URL? {
97-
#if DEBUG
98-
return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
99-
#else
100-
return Bundle.main.url(forResource: "main", withExtension: "jsbundle")
101-
#endif
102-
}
103-
// add the below method
104-
override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
105-
return Auth0.resumeAuth(url, options: options)
106-
}
92+
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
93+
return RCTLinkingManager.application(app, open: url, options: options)
10794
}
10895
```
10996
If You're Using (Objective-C++ - `ios/<YOUR PROJECT>/AppDelegate.mm`) add the following:

0 commit comments

Comments
 (0)