omnipay-reactnative-sdk 0.8.7 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -54,7 +54,7 @@ public class OmnipayActivityModule extends ReactContextBaseJavaModule {
|
|
|
54
54
|
private void sendEvent(ReactContext reactContext,
|
|
55
55
|
String eventName,
|
|
56
56
|
@Nullable WritableMap params) {
|
|
57
|
-
|
|
57
|
+
reactContext
|
|
58
58
|
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
|
|
59
59
|
.emit(eventName, params);
|
|
60
60
|
}
|
|
@@ -170,7 +170,7 @@ public class OmnipayActivityModule extends ReactContextBaseJavaModule {
|
|
|
170
170
|
try {
|
|
171
171
|
WritableMap params = Arguments.createMap();
|
|
172
172
|
params.putString("data", datax);
|
|
173
|
-
sendEvent(
|
|
173
|
+
sendEvent(reactContext, "OmnipayEvent", params);
|
|
174
174
|
}
|
|
175
175
|
catch (Exception ex) {
|
|
176
176
|
ex.printStackTrace();
|