|
@@ -6,10 +6,10 @@ import { ComponentRegistry } from './components/ComponentRegistry';
|
6
|
6
|
import { Commands } from './commands/Commands';
|
7
|
7
|
import { LayoutTreeParser } from './commands/LayoutTreeParser';
|
8
|
8
|
import { LayoutTreeCrawler } from './commands/LayoutTreeCrawler';
|
9
|
|
-import { PrivateEventsListener } from './events/PrivateEventsListener';
|
10
|
9
|
import { PublicEventsRegistry } from './events/PublicEventsRegistry';
|
11
|
10
|
import { ComponentProvider } from 'react-native';
|
12
|
11
|
import { Element } from './adapters/Element';
|
|
12
|
+import { PrivateEventsListener } from './events/PrivateEventsListener';
|
13
|
13
|
|
14
|
14
|
export class Navigation {
|
15
|
15
|
public readonly Element;
|
|
@@ -23,7 +23,6 @@ export class Navigation {
|
23
|
23
|
private readonly nativeCommandsSender;
|
24
|
24
|
private readonly commands;
|
25
|
25
|
private readonly publicEventsRegistry;
|
26
|
|
- private readonly privateEventsListener;
|
27
|
26
|
|
28
|
27
|
constructor() {
|
29
|
28
|
this.Element = Element;
|
|
@@ -37,9 +36,8 @@ export class Navigation {
|
37
|
36
|
this.nativeCommandsSender = new NativeCommandsSender();
|
38
|
37
|
this.commands = new Commands(this.nativeCommandsSender, this.layoutTreeParser, this.layoutTreeCrawler);
|
39
|
38
|
this.publicEventsRegistry = new PublicEventsRegistry(this.nativeEventsReceiver);
|
40
|
|
- this.privateEventsListener = new PrivateEventsListener(this.nativeEventsReceiver, this.store);
|
41
|
39
|
|
42
|
|
- this.privateEventsListener.listenAndHandlePrivateEvents();
|
|
40
|
+ new PrivateEventsListener(this.nativeEventsReceiver, this.store).listenAndHandlePrivateEvents();
|
43
|
41
|
}
|
44
|
42
|
|
45
|
43
|
/**
|