File tree 2 files changed +7
-2
lines changed
React/Base/Surface/SurfaceHostingView
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ NS_ASSUME_NONNULL_BEGIN
45
45
initialProperties : (NSDictionary *)initialProperties
46
46
launchOptions : (NSDictionary *)launchOptions ;
47
47
48
+ - (instancetype )initWithSurface : (RCTSurface *)surface
49
+ sizeMeasureMode : (RCTSurfaceSizeMeasureMode)sizeMeasureMode
50
+ NS_UNAVAILABLE;
51
+
48
52
- (void )cancelTouches ;
49
53
50
54
@end
Original file line number Diff line number Diff line change @@ -67,9 +67,10 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge
67
67
// `RCTRootViewSizeFlexibilityNone` is the RCTRootView's default.
68
68
RCTSurfaceSizeMeasureMode sizeMeasureMode = convertToSurfaceSizeMeasureMode (RCTRootViewSizeFlexibilityNone);
69
69
70
- if (self = [super initWithBridge: bridge moduleName: moduleName initialProperties: initialProperties sizeMeasureMode: sizeMeasureMode]) {
70
+ RCTSurface *surface = [[self class ] createSurfaceWithBridge: bridge moduleName: moduleName initialProperties: initialProperties];
71
+ [surface start ];
72
+ if (self = [super initWithSurface: surface sizeMeasureMode: sizeMeasureMode]) {
71
73
self.backgroundColor = [UIColor whiteColor ];
72
- [super .surface start ];
73
74
}
74
75
75
76
RCT_PROFILE_END_EVENT (RCTProfileTagAlways, @" " );
You can’t perform that action at this time.
0 commit comments