diff --git a/android/src/main/java/com/reactnativedocumentpicker/RNDocumentPickerModule.java b/android/src/main/java/com/reactnativedocumentpicker/RNDocumentPickerModule.java index dd67216..5001525 100644 --- a/android/src/main/java/com/reactnativedocumentpicker/RNDocumentPickerModule.java +++ b/android/src/main/java/com/reactnativedocumentpicker/RNDocumentPickerModule.java @@ -103,9 +103,9 @@ private String[] readableArrayToStringArray(ReadableArray readableArray) { } @Override - public void onCatalystInstanceDestroy() { + public void invalidate() { getReactApplicationContext().removeActivityEventListener(activityEventListener); - super.onCatalystInstanceDestroy(); + super.invalidate(); } @NonNull