Skip to content

Commit

Permalink
fix react-native 0.74 Use invalidate method instead onCatalystInstanc…
Browse files Browse the repository at this point in the history
…eDestroy
  • Loading branch information
zhangzy2345 committed Apr 25, 2024
1 parent d9879ac commit 1216b52
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public Map<String, Object> getConstants() {
}

@Override
public void onCatalystInstanceDestroy() {
super.onCatalystInstanceDestroy();
public void invalidate() {
super.invalidate();
new CleanTask(getReactApplicationContext()).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}

Expand Down

0 comments on commit 1216b52

Please sign in to comment.