1/* 2 * Copyright (c) Meta Platforms, Inc. and affiliates. 3 * 4 * This source code is licensed under the MIT license found in the 5 * LICENSE file in the root directory of this source tree. 6 */ 7 8#import "ABI48_0_0RCTWrapperABI48_0_0ReactRootViewController.h" 9 10#import <ABI48_0_0RCTWrapper/ABI48_0_0RCTWrapper.h> 11#import <ABI48_0_0React/ABI48_0_0RCTBridge.h> 12#import <ABI48_0_0React/ABI48_0_0RCTRootView.h> 13 14#import "ABI48_0_0RCTWrapperExampleView.h" 15 16@implementation ABI48_0_0RCTWrapperABI48_0_0ReactRootViewController { 17 ABI48_0_0RCTBridge *_bridge; 18} 19 20- (instancetype)initWithBridge:(ABI48_0_0RCTBridge *)bridge 21{ 22 if (self = [super initWithNibName:nil bundle:nil]) { 23 _bridge = bridge; 24 } 25 26 return self; 27} 28 29- (void)loadView 30{ 31 ABI48_0_0RCTRootView *rootView = [[ABI48_0_0RCTRootView alloc] initWithBridge:_bridge 32 moduleName:@"WrapperExample" 33 initialProperties:@{}]; 34 35 rootView.backgroundColor = [UIColor whiteColor]; 36 37 UIActivityIndicatorView *progressIndicatorView = 38 [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; 39 [progressIndicatorView startAnimating]; 40 rootView.loadingView = progressIndicatorView; 41 42 rootView.sizeFlexibility = ABI48_0_0RCTRootViewSizeFlexibilityWidthAndHeight; 43 self.view = rootView; 44} 45 46@end 47