File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
packages/react-native-app-auth/plugin/ios Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,10 @@ const withAppAuthAppDelegateHeader = rootConfig =>
20
20
let contents = fs . readFileSync ( headerFilePath , 'utf-8' ) ;
21
21
22
22
// add a new import (unless it already exists)
23
- contents = codeModIOs . addObjcImports ( contents , [ '"RNAppAuthAuthorizationFlowManager.h"' ] ) ;
23
+ contents = codeModIOs . addObjcImports ( contents , [
24
+ '"RNAppAuthAuthorizationFlowManager.h"' ,
25
+ "<React/RCTLinkingManager.h>" , // in reverse order because of the way the code-mod works
26
+ ] ) ;
24
27
25
28
// adds a new protocol to the AppDelegate interface (unless it already exists)
26
29
contents = insertProtocolDeclaration ( {
Original file line number Diff line number Diff line change 5
5
removeContents,
6
6
} = require ( '@expo/config-plugins/build/utils/generateCode' ) ;
7
7
8
- const withAppAuthAppDelegate = rootConfig =>
9
- withAppDelegate ( rootConfig , config => {
8
+ const withAppAuthAppDelegate = ( rootConfig ) =>
9
+ withAppDelegate ( rootConfig , ( config ) => {
10
10
let { contents } = config . modResults ;
11
11
12
12
// generation tags & headers
You can’t perform that action at this time.
0 commit comments