Skip to content

Commit 7617611

Browse files
hirbodmikehardy
andauthored
fix(app, expo): add config plugin support for Expo SDK 53 (#8495)
* Update appDelegate.ts * style(lint): result of `yarn lint:js --fix` --------- Co-authored-by: Mike Hardy <[email protected]>
1 parent 97ddefd commit 7617611

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/app/plugin/src/ios/appDelegate.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ export function modifyObjcAppDelegate(contents: string): string {
7070

7171
export function modifySwiftAppDelegate(contents: string): string {
7272
const methodInvocationBlock = `FirebaseApp.configure()`;
73-
const methodInvocationLineMatcher = /(?:self\.moduleName\s*=\s*"([^"]*)")/g;
73+
const methodInvocationLineMatcher =
74+
/(?:self\.moduleName\s*=\s*"([^"]*)")|(?:reactNativeFactory\?\.\s*startReactNative)/;
7475

7576
// Add import
7677
if (!contents.includes('import FirebaseCore')) {

0 commit comments

Comments
 (0)