Skip to content

Commit c497fc6

Browse files
fkgozalifacebook-github-bot
authored andcommitted
RNTester iOS: setup Meta internal app init logic (facebook#41591)
Summary: Pull Request resolved: facebook#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
1 parent 0d715cd commit c497fc6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/rn-tester/RNTester/AppDelegate.mm

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
#endif
2424
#endif
2525

26+
// FB-internal imports
27+
#ifdef RN_DISABLE_OSS_PLUGIN_HEADER
28+
#import <RCTFBAppInit/RCTFBAppInit.h>
29+
#endif
30+
2631
#if BUNDLE_PATH
2732
NSString *kBundlePath = @"xplat/js/RKJSModules/EntryPoints/RNTesterTestBundle.js";
2833
#else
@@ -33,6 +38,11 @@ @implementation AppDelegate
3338

3439
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
3540
{
41+
#ifdef RN_DISABLE_OSS_PLUGIN_HEADER
42+
// FB-internal app init setup.
43+
RCTFBAppInitApplicationDidFinishLaunching(launchOptions);
44+
#endif
45+
3646
self.moduleName = @"RNTesterApp";
3747
// You can add your custom initial props in the dictionary below.
3848
// They will be passed down to the ViewController used by React Native.

0 commit comments

Comments
 (0)