Upgrade example app to 0.62.0-rc.3
Summary: ^ 1. Remove entire `react-native/ReactNativeExampleFlipper` folder 2. Run `npx react-native init --version 0.62.0-rc.3 ReactNativeExampleFlipper` 4. restore the `package.json` and `TicTacToe` file and import 5. removed `.eslintrc`, `_BUCK` and `build_defz.bzl`, `.watchmenconfig` Added comments below to highlight the non-generated changes Reviewed By: passy Differential Revision: D20221558 fbshipit-source-id: da1c895a2b0e7ce48092e64cdb5ffdb9e4a1a10b
This commit is contained in:
committed by
Facebook Github Bot
parent
1351496c2c
commit
f3fd8646e3
@@ -18,13 +18,29 @@
|
||||
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
|
||||
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
|
||||
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
|
||||
|
||||
static 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 addPlugin:[FlipperKitReactPlugin new]];
|
||||
[client addPlugin:[[FlipperKitNetworkPlugin alloc]
|
||||
initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
|
||||
[client start];
|
||||
}
|
||||
#endif
|
||||
|
||||
@implementation AppDelegate
|
||||
|
||||
- (BOOL)application:(UIApplication*)application
|
||||
didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
|
||||
[AppDelegate initializeFlipper:application];
|
||||
#if DEBUG
|
||||
InitializeFlipper(application);
|
||||
#endif
|
||||
|
||||
RCTBridge* bridge = [[RCTBridge alloc] initWithDelegate:self
|
||||
launchOptions:launchOptions];
|
||||
@@ -57,20 +73,4 @@
|
||||
#endif
|
||||
}
|
||||
|
||||
+ (void)initializeFlipper:(UIApplication*)application {
|
||||
#if DEBUG
|
||||
FlipperClient* client = [FlipperClient sharedClient];
|
||||
SKDescriptorMapper* layoutDescriptorMapper =
|
||||
[[SKDescriptorMapper alloc] initWithDefaults];
|
||||
[client addPlugin:[[FlipperKitLayoutPlugin alloc]
|
||||
initWithRootNode:application
|
||||
withDescriptorMapper:layoutDescriptorMapper]];
|
||||
[client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
|
||||
[client addPlugin:[FlipperKitReactPlugin new]];
|
||||
[client addPlugin:[[FlipperKitNetworkPlugin alloc]
|
||||
initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
|
||||
[client start];
|
||||
#endif
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -35,4 +35,4 @@
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user