Skip to content

Commit 52cd9cd

Browse files
safaiyehfacebook-github-bot
authored andcommitted
initalizeFlipper should be set in template app by default (#27569)
Summary: Issue: #27565 initalizeFlipper should be set in template app by default. ## Changelog [iOS] [Changed] - Added Flipper to template app [Android] [Changed] - Added Flipper to template app Pull Request resolved: #27569 Test Plan: Connect Flipper to the iOS application Connect Flipper to the Android application Reviewed By: passy Differential Revision: D19344704 Pulled By: rickhanlonii fbshipit-source-id: ca126fd2caab13751ddc2ce6d195bd0c644c704e
1 parent 3c71160 commit 52cd9cd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

template/android/app/src/main/java/com/helloworld/MainApplication.java

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public ReactNativeHost getReactNativeHost() {
4444
public void onCreate() {
4545
super.onCreate();
4646
SoLoader.init(this, /* native exopackage */ false);
47+
initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
4748
}
4849

4950
/**

template/ios/HelloWorld/AppDelegate.m

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ @implementation AppDelegate
1919

2020
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
2121
{
22+
[AppDelegate initializeFlipper:application];
2223
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
2324
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
2425
moduleName:@"HelloWorld"

0 commit comments

Comments
 (0)