mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Summary: The copyright headers in the Wrapper example referenced a license file that doesn't exist anymore. This PR updates the copyright header to match other example files in the repo Fixes https://github.com/facebook/react-native/issues/23215 [General] [Changed] Updated the license of RCTWrapperExample to match the rest of the Examples Pull Request resolved: https://github.com/facebook/react-native/pull/24037 Differential Revision: D14521327 Pulled By: cpojer fbshipit-source-id: 983741d4d93178cd90b532ad5f8ff0717670aff4
34 lines
866 B
Objective-C
34 lines
866 B
Objective-C
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
*/
|
|
|
|
#import "RCTWrapperReactRootViewManager.h"
|
|
|
|
#import <RCTWrapper/RCTWrapperView.h>
|
|
#import <RCTWrapper/RCTWrapperViewControllerHostingView.h>
|
|
|
|
#import "RCTWrapperReactRootViewController.h"
|
|
|
|
@implementation RCTWrapperReactRootViewManager
|
|
|
|
RCT_EXPORT_MODULE()
|
|
|
|
- (UIView *)view
|
|
{
|
|
RCTWrapperViewControllerHostingView *contentViewControllerHostingView =
|
|
[RCTWrapperViewControllerHostingView new];
|
|
|
|
contentViewControllerHostingView.contentViewController =
|
|
[[RCTWrapperReactRootViewController alloc] initWithBridge:self.bridge];
|
|
|
|
RCTWrapperView *wrapperView = [super view];
|
|
wrapperView.contentView = contentViewControllerHostingView;
|
|
return wrapperView;
|
|
}
|
|
|
|
@end
|