From c497fc61b5ce5e30771f39202c522bc7acae2808 Mon Sep 17 00:00:00 2001 From: Kevin Gozali Date: Tue, 21 Nov 2023 13:43:16 -0800 Subject: [PATCH] RNTester iOS: setup Meta internal app init logic (#41591) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41591 For internal build integration, invoke Meta internal app setup logic. This has no effect in OSS. Changelog: [Internal] Reviewed By: christophpurrer Differential Revision: D51498070 fbshipit-source-id: 48658d2c3136023d80fbd9a2fdc29996616e1eee --- packages/rn-tester/RNTester/AppDelegate.mm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/rn-tester/RNTester/AppDelegate.mm b/packages/rn-tester/RNTester/AppDelegate.mm index 16a33fa3cab..a7fa095e5bc 100644 --- a/packages/rn-tester/RNTester/AppDelegate.mm +++ b/packages/rn-tester/RNTester/AppDelegate.mm @@ -23,6 +23,11 @@ #endif #endif +// FB-internal imports +#ifdef RN_DISABLE_OSS_PLUGIN_HEADER +#import +#endif + #if BUNDLE_PATH NSString *kBundlePath = @"xplat/js/RKJSModules/EntryPoints/RNTesterTestBundle.js"; #else @@ -33,6 +38,11 @@ NSString *kBundlePath = @"js/RNTesterApp.ios"; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { +#ifdef RN_DISABLE_OSS_PLUGIN_HEADER + // FB-internal app init setup. + RCTFBAppInitApplicationDidFinishLaunching(launchOptions); +#endif + self.moduleName = @"RNTesterApp"; // You can add your custom initial props in the dictionary below. // They will be passed down to the ViewController used by React Native.