Skip to content

Commit 01952b4

Browse files
authored
Merge pull request #1036 from TickKleiner/master
fix: addListener and removeListeners methods wass added to pass warning with Native Event Emitter
2 parents 087db72 + d81fd1f commit 01952b4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

android/src/main/java/com/rnfs/RNFSManager.java

+11
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,17 @@ public void onScanCompleted(String path, Uri uri) {
953953
);
954954
}
955955

956+
// Required for rn built in EventEmitter Calls.
957+
@ReactMethod
958+
public void addListener(String eventName) {
959+
960+
}
961+
962+
@ReactMethod
963+
public void removeListeners(Integer count) {
964+
965+
}
966+
956967
private void reject(Promise promise, String filepath, Exception ex) {
957968
if (ex instanceof FileNotFoundException) {
958969
rejectFileNotFound(promise, filepath);

0 commit comments

Comments
 (0)