Skip to content

Commit 412e481

Browse files
fix warning new NativeEventEmitter()
1 parent c323cd9 commit 412e481

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

android/src/main/java/sqip/react/CardEntryModule.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,4 +323,14 @@ private DeviceEventManagerModule.RCTDeviceEventEmitter getDeviceEventEmitter() {
323323
}
324324
return deviceEventEmitter;
325325
}
326+
327+
@ReactMethod
328+
public void addListener(String eventName) {
329+
330+
}
331+
332+
@ReactMethod
333+
public void removeListeners(Integer count) {
334+
335+
}
326336
}

android/src/main/java/sqip/react/GooglePayModule.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,13 @@ private DeviceEventManagerModule.RCTDeviceEventEmitter getDeviceEventEmitter() {
185185
}
186186
return deviceEventEmitter;
187187
}
188+
@ReactMethod
189+
public void addListener(String eventName) {
190+
191+
}
192+
193+
@ReactMethod
194+
public void removeListeners(Integer count) {
195+
196+
}
188197
}

react-native-in-app-payments-quickstart/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ AppRegistry.registerComponent(appName, () => App);
2424
A lot of libraries still haven't released a new version to handle
2525
these errors (or warnings in some cases).
2626
so we can hide the warning for now with this logBox. */
27-
LogBox.ignoreAllLogs();

0 commit comments

Comments
 (0)