|
|
|
|
25
|
public class RctManager {
|
25
|
public class RctManager {
|
26
|
private static final String TAG = "RctManager";
|
26
|
private static final String TAG = "RctManager";
|
27
|
private static final String KEY_EVENT_ID = "id";
|
27
|
private static final String KEY_EVENT_ID = "id";
|
|
|
28
|
+ private static final String KEY_EVENT_TYPE = "type";
|
|
|
29
|
+ private static final String EVENT_TYPE = "NavBarButtonPress";
|
28
|
private static RctManager sInstance;
|
30
|
private static RctManager sInstance;
|
29
|
|
31
|
|
30
|
private ReactInstanceManager mReactManager;
|
32
|
private ReactInstanceManager mReactManager;
|
|
|
|
|
136
|
return;
|
138
|
return;
|
137
|
}
|
139
|
}
|
138
|
|
140
|
|
|
|
141
|
+ params.putString(KEY_EVENT_TYPE, EVENT_TYPE);
|
139
|
params.putString(KEY_EVENT_ID, eventName);
|
142
|
params.putString(KEY_EVENT_ID, eventName);
|
140
|
params.putString(Screen.KEY_NAVIGATOR_EVENT_ID, screen.navigatorEventId);
|
143
|
params.putString(Screen.KEY_NAVIGATOR_EVENT_ID, screen.navigatorEventId);
|
141
|
eventEmitter.emit(screen.navigatorEventId, params);
|
144
|
eventEmitter.emit(screen.navigatorEventId, params);
|