Skip to content

Commit e8541e0

Browse files
axe-fbfacebook-github-bot
authored andcommitted
Add React Dev tools to the default template
Reviewed By: PeteTheHeat Differential Revision: D17222891 fbshipit-source-id: ea3ce9b2285f67dc01cd11c66ce4a41a4c4ea958
1 parent 6a9ea48 commit e8541e0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

template/ios/HelloWorld/AppDelegate.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
1818
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
1919
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
20+
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
2021
#endif
2122

2223
@implementation AppDelegate
@@ -53,7 +54,8 @@ + (void) initializeFlipper:(UIApplication *)application
5354
FlipperClient *client = [FlipperClient sharedClient];
5455
SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
5556
[client addPlugin: [[FlipperKitLayoutPlugin alloc] initWithRootNode: application withDescriptorMapper: layoutDescriptorMapper]];
56-
[client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; [client start];
57+
[client addPlugin: [[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
58+
[client addPlugin: [FlipperKitReactPlugin new]];
5759
[client addPlugin: [[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
5860
[client start];
5961
#endif

template/ios/Podfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ require_relative '../node_modules/@react-native-community/cli-platform-ios/nativ
33

44
# Add Flipper Poods
55
def flipper_pods()
6-
flipperkit_version = '0.23.4'
6+
flipperkit_version = '0.23.6'
77
pod 'FlipperKit', '~>' + flipperkit_version, :configuration => 'Debug'
88
pod 'FlipperKit/FlipperKitLayoutPlugin', '~>' + flipperkit_version, :configuration => 'Debug'
99
pod 'FlipperKit/SKIOSNetworkPlugin', '~>' + flipperkit_version, :configuration => 'Debug'
1010
pod 'FlipperKit/FlipperKitUserDefaultsPlugin', '~>' + flipperkit_version, :configuration => 'Debug'
11+
pod 'FlipperKit/FlipperKitReactPlugin', '~>' + flipperkit_version, :configuration => 'Debug'
1112
end
1213

1314
# Post Install processing for Flipper
@@ -77,8 +78,8 @@ target 'HelloWorld' do
7778
use_native_modules!
7879

7980
# For enabling Flipper.
80-
# Note that if you use_framework!, flipper will no work.
81-
# Disable these lines if you are doing use_framework!
81+
# Note that if you use_framework!, flipper will no work.
82+
# Disable these lines if you are doing use_framework!
8283
flipper_pods()
8384
post_install do |installer|
8485
flipper_post_install(installer)

0 commit comments

Comments
 (0)