|
@@ -7,14 +7,14 @@ import com.facebook.react.modules.core.DeviceEventManagerModule;
|
7
|
7
|
|
8
|
8
|
import static com.facebook.react.modules.core.DeviceEventManagerModule.RCTDeviceEventEmitter;
|
9
|
9
|
|
10
|
|
-public class NavigationEventEmitter {
|
|
10
|
+public class NavigationEvent {
|
11
|
11
|
private static final String onAppLaunched = "RNN.appLaunched";
|
12
|
12
|
private static final String containerStart = "RNN.containerStart";
|
13
|
13
|
private static final String containerStop = "RNN.containerStop";
|
14
|
14
|
|
15
|
15
|
private final RCTDeviceEventEmitter emitter;
|
16
|
16
|
|
17
|
|
- public NavigationEventEmitter(ReactContext reactContext) {
|
|
17
|
+ public NavigationEvent(ReactContext reactContext) {
|
18
|
18
|
this.emitter = reactContext.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class);
|
19
|
19
|
}
|
20
|
20
|
|
|
@@ -23,16 +23,10 @@ public class NavigationEventEmitter {
|
23
|
23
|
}
|
24
|
24
|
|
25
|
25
|
public void containerStop(String id) {
|
26
|
|
- WritableMap data = Arguments.createMap();
|
27
|
|
- data.putString("id", id);
|
28
|
|
-// emit(containerStop, data);
|
29
|
26
|
emit(containerStop, id);
|
30
|
27
|
}
|
31
|
28
|
|
32
|
29
|
public void containerStart(String id) {
|
33
|
|
- WritableMap data = Arguments.createMap();
|
34
|
|
- data.putString("id", id);
|
35
|
|
-// emit(containerStart, data);
|
36
|
30
|
emit(containerStart, id);
|
37
|
31
|
}
|
38
|
32
|
|