Skip to content

Commit

Permalink
Migrate away from onCatalystInstanceDestroy() to invalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
b1ngx authored Apr 27, 2024
1 parent 17eaa4b commit 14d61e1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ private String[] readableArrayToStringArray(ReadableArray readableArray) {
}

@Override
public void onCatalystInstanceDestroy() {
public void invalidate() {
getReactApplicationContext().removeActivityEventListener(activityEventListener);
super.onCatalystInstanceDestroy();
super.invalidate();
}

@NonNull
Expand Down

0 comments on commit 14d61e1

Please sign in to comment.