Skip to content

Commit 7b61243

Browse files
authored
feat: migrate away from onCatalystInstanceDestroy() to invalidate (#717)
1 parent 17eaa4b commit 7b61243

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/java/com/reactnativedocumentpicker/RNDocumentPickerModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ private String[] readableArrayToStringArray(ReadableArray readableArray) {
103103
}
104104

105105
@Override
106-
public void onCatalystInstanceDestroy() {
106+
public void invalidate() {
107107
getReactApplicationContext().removeActivityEventListener(activityEventListener);
108-
super.onCatalystInstanceDestroy();
108+
super.invalidate();
109109
}
110110

111111
@NonNull

0 commit comments

Comments
 (0)