From 52cd9cd6fec0866177aa02f7129a8b3d8b2bdbea Mon Sep 17 00:00:00 2001 From: Jason Safaiyeh Date: Thu, 30 Jan 2020 03:07:40 -0800 Subject: [PATCH] initalizeFlipper should be set in template app by default (#27569) Summary: Issue: https://github.com/facebook/react-native/issues/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: https://github.com/facebook/react-native/pull/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 --- .../app/src/main/java/com/helloworld/MainApplication.java | 1 + template/ios/HelloWorld/AppDelegate.m | 1 + 2 files changed, 2 insertions(+) diff --git a/template/android/app/src/main/java/com/helloworld/MainApplication.java b/template/android/app/src/main/java/com/helloworld/MainApplication.java index 04ed911b2ec80f..e55c37b9780140 100644 --- a/template/android/app/src/main/java/com/helloworld/MainApplication.java +++ b/template/android/app/src/main/java/com/helloworld/MainApplication.java @@ -44,6 +44,7 @@ public ReactNativeHost getReactNativeHost() { public void onCreate() { super.onCreate(); SoLoader.init(this, /* native exopackage */ false); + initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); } /** diff --git a/template/ios/HelloWorld/AppDelegate.m b/template/ios/HelloWorld/AppDelegate.m index 6ebf0a680b219c..da94b0023fb3dd 100644 --- a/template/ios/HelloWorld/AppDelegate.m +++ b/template/ios/HelloWorld/AppDelegate.m @@ -19,6 +19,7 @@ @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + [AppDelegate initializeFlipper:application]; RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"HelloWorld"