Skip to content

Commit f98cfcb

Browse files
author
Ron Radtke
committed
adds addeventlistener and removeeventlistener stumps to not get warnings
1 parent 3d72246 commit f98cfcb

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

android/src/newarch/java/com/ReactNativeBlobUtil/ReactNativeBlobUtil.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ public ReactNativeBlobUtil(ReactApplicationContext reactContext) {
2626
delegate = new ReactNativeBlobUtilImpl(reactContext);
2727
}
2828

29+
// Required for rn built in EventEmitter Calls.
30+
@ReactMethod
31+
public void addListener(String eventName) {
32+
33+
}
34+
35+
@ReactMethod
36+
public void removeListeners(Integer count) {
37+
38+
}
39+
2940
@Override
3041
protected Map<String, Object> getTypedExportedConstants() {
3142
Map<String, Object> res = new HashMap<>();

android/src/oldarch/java/com/ReactNativeBlobUtil/ReactNativeBlobUtil.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ public ReactNativeBlobUtil(ReactApplicationContext reactContext) {
2727
delegate = new ReactNativeBlobUtilImpl(reactContext);
2828
}
2929

30+
// Required for rn built in EventEmitter Calls.
31+
@ReactMethod
32+
public void addListener(String eventName) {
33+
34+
}
35+
36+
@ReactMethod
37+
public void removeListeners(Integer count) {
38+
39+
}
40+
3041
@NonNull
3142
@Override
3243
public String getName() {

0 commit comments

Comments
 (0)