|
@@ -10,19 +10,19 @@ export class NativeEventsReceiver {
|
10
|
10
|
this.emitter = new NativeEventEmitter(NativeModules.RNNEventEmitter);
|
11
|
11
|
}
|
12
|
12
|
|
13
|
|
- registerAppLaunched(callback): EventSubscription {
|
|
13
|
+ registerAppLaunched(callback: () => void): EventSubscription {
|
14
|
14
|
return this.emitter.addListener('RNN.appLaunched', callback);
|
15
|
15
|
}
|
16
|
16
|
|
17
|
|
- registerComponentDidAppear(callback): EventSubscription {
|
|
17
|
+ registerComponentDidAppear(callback: (componendId: string, componentName: string) => void): EventSubscription {
|
18
|
18
|
return this.emitter.addListener('RNN.componentDidAppear', callback);
|
19
|
19
|
}
|
20
|
20
|
|
21
|
|
- registerComponentDidDisappear(callback): EventSubscription {
|
|
21
|
+ registerComponentDidDisappear(callback: (componendId: string, componentName: string) => void): EventSubscription {
|
22
|
22
|
return this.emitter.addListener('RNN.componentDidDisappear', callback);
|
23
|
23
|
}
|
24
|
24
|
|
25
|
|
- registerInteraction(callback): EventSubscription {
|
|
25
|
+ registerInteraction(callback: (name: string) => void): EventSubscription {
|
26
|
26
|
return this.emitter.addListener('RNN.interaction', callback);
|
27
|
27
|
}
|
28
|
28
|
}
|