Removed unimodules from ios
This commit is contained in:
parent
f89aa2d2ff
commit
7e4c385083
3 changed files with 2 additions and 15 deletions
|
@ -6,13 +6,10 @@
|
|||
*/
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <UMReactNativeAdapter/UMModuleRegistryAdapter.h>
|
||||
#import <React/RCTBridgeDelegate.h>
|
||||
#import <UMCore/UMAppDelegateWrapper.h>
|
||||
|
||||
@interface AppDelegate : UMAppDelegateWrapper <RCTBridgeDelegate>
|
||||
@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>
|
||||
|
||||
@property (nonatomic, strong) UMModuleRegistryAdapter *moduleRegistryAdapter;
|
||||
@property (nonatomic, strong) UIWindow *window;
|
||||
|
||||
@end
|
||||
|
|
|
@ -10,10 +10,6 @@
|
|||
#import <React/RCTBundleURLProvider.h>
|
||||
#import <React/RCTRootView.h>
|
||||
|
||||
#import <UMCore/UMModuleRegistry.h>
|
||||
#import <UMReactNativeAdapter/UMNativeModulesProxy.h>
|
||||
#import <UMReactNativeAdapter/UMModuleRegistryAdapter.h>
|
||||
|
||||
#import <React/RCTLinkingManager.h>
|
||||
#import "RNSplashScreen.h"
|
||||
|
||||
|
@ -31,8 +27,6 @@
|
|||
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||
{
|
||||
self.moduleRegistryAdapter = [[UMModuleRegistryAdapter alloc] initWithModuleRegistryProvider:[[UMModuleRegistryProvider alloc] init]];
|
||||
|
||||
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
|
||||
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"main" initialProperties:nil];
|
||||
rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
platform :ios, '10.0'
|
||||
platform :ios, '9.0'
|
||||
|
||||
require_relative '../node_modules/react-native-unimodules/cocoapods'
|
||||
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
|
||||
|
||||
target 'Campus' do
|
||||
|
@ -38,9 +37,6 @@ target 'Campus' do
|
|||
|
||||
# Other native modules
|
||||
|
||||
# Automatically detect installed unimodules
|
||||
use_unimodules!
|
||||
|
||||
# react-native-cli autolinking
|
||||
use_native_modules!
|
||||
|
||||
|
|
Loading…
Reference in a new issue