|
@@ -1,7 +1,10 @@
|
1
|
1
|
#import "RNNReactRootView.h"
|
2
|
2
|
#import "RCTHelpers.h"
|
|
3
|
+#import <React/RCTUIManager.h>
|
3
|
4
|
|
4
|
|
-@implementation RNNReactRootView
|
|
5
|
+@implementation RNNReactRootView {
|
|
6
|
+ RCTBridge* _bridge;
|
|
7
|
+};
|
5
|
8
|
|
6
|
9
|
- (instancetype)initWithBridge:(RCTBridge *)bridge moduleName:(NSString *)moduleName initialProperties:(NSDictionary *)initialProperties {
|
7
|
10
|
self = [super initWithBridge:bridge moduleName:moduleName initialProperties:initialProperties];
|
|
@@ -39,4 +42,9 @@
|
39
|
42
|
}
|
40
|
43
|
}
|
41
|
44
|
|
|
45
|
+- (void)layoutSubviews {
|
|
46
|
+ [super layoutSubviews];
|
|
47
|
+ [_bridge.uiManager setSize:self.bounds.size forView:self];
|
|
48
|
+}
|
|
49
|
+
|
42
|
50
|
@end
|