|
@@ -16,7 +16,7 @@
|
16
|
16
|
self.containerId = node.nodeId;
|
17
|
17
|
self.containerName = node.data[@"name"];
|
18
|
18
|
|
19
|
|
- self.view = [[RCTRootView alloc] initWithBridge:RNN.instance.bridge
|
|
19
|
+ self.view = [[RCTRootView alloc] initWithBridge:[RNN instance].bridge
|
20
|
20
|
moduleName:self.containerName
|
21
|
21
|
initialProperties:@{@"id": self.containerId}];
|
22
|
22
|
return self;
|
|
@@ -25,13 +25,13 @@
|
25
|
25
|
-(void)viewDidAppear:(BOOL)animated
|
26
|
26
|
{
|
27
|
27
|
[super viewDidAppear:animated];
|
28
|
|
- [RNN.instance.eventEmitter sendContainerStart:self.containerId];
|
|
28
|
+ [[RNN instance].eventEmitter sendContainerStart:self.containerId];
|
29
|
29
|
}
|
30
|
30
|
|
31
|
31
|
-(void)viewDidDisappear:(BOOL)animated
|
32
|
32
|
{
|
33
|
33
|
[super viewDidDisappear:animated];
|
34
|
|
- [RNN.instance.eventEmitter sendContainerStop:self.containerId];
|
|
34
|
+ [[RNN instance].eventEmitter sendContainerStop:self.containerId];
|
35
|
35
|
}
|
36
|
36
|
|
37
|
37
|
|