Skip to content

Commit

Permalink
Add React Dev tools plugin to RNTester
Browse files Browse the repository at this point in the history
Reviewed By: PeteTheHeat

Differential Revision: D17222856

fbshipit-source-id: d5d69e94f500108ef2e856ffaf2958120c7d25d3
  • Loading branch information
axe-fb authored and facebook-github-bot committed Sep 7, 2019
1 parent 04a0112 commit 6a9ea48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions RNTester/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def flipper_pods()
pod 'FlipperKit/FlipperKitLayoutPlugin', '~>' + flipperkit_version, :configuration => 'Debug'
pod 'FlipperKit/SKIOSNetworkPlugin', '~>' + flipperkit_version, :configuration => 'Debug'
pod 'FlipperKit/FlipperKitUserDefaultsPlugin', '~>' + flipperkit_version, :configuration => 'Debug'
pod 'FlipperKit/FlipperKitReactPlugin' '~>' + flipperkit_version, :configuration => 'Debug'

This comment has been minimized.

Copy link
@zhongwuzw

zhongwuzw Sep 12, 2019

Contributor

@axe-fb Hey, FlipperKitReactPlugin already published? I can't find it by pod search FlipperKit.
https://github.com/CocoaPods/Specs/blob/master/Specs/3/2/5/FlipperKit/0.23.6/FlipperKit.podspec.json
image

This comment has been minimized.

Copy link
@axe-fb

axe-fb Sep 12, 2019

Author Contributor

cc @priteshrnandgaonkar - is FlipperKit React plugin already published ?

end

# Post Install processing for Flipper
Expand Down
5 changes: 3 additions & 2 deletions RNTester/RNTester/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
#endif
#endif
Expand Down Expand Up @@ -200,8 +201,8 @@ + (void) initializeFlipper:(UIApplication *)application
FlipperClient *client = [FlipperClient sharedClient];
SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
[client addPlugin: [[FlipperKitLayoutPlugin alloc] initWithRootNode: application withDescriptorMapper: layoutDescriptorMapper]];
[client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
[client start];
[client addPlugin: [[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
[client addPlugin: [FlipperKitReactPlugin new]];
[client addPlugin: [[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
[client start];
#endif
Expand Down

0 comments on commit 6a9ea48

Please sign in to comment.