Skip to content

Commit

Permalink
fix: Handle invalidate for react-native 0.74+
Browse files Browse the repository at this point in the history
React-Native no longer calls onCatalystInstanceDestroy in 0.74+.
  • Loading branch information
davidliu committed Jun 21, 2024
1 parent c8829cb commit e4dafb0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ public String getName() {
return "WebRTCModule";
}

@Override
public void invalidate() {
onCatalystInstanceDestroy();
}

@Override
public void onCatalystInstanceDestroy() {
if (mAudioDeviceModule != null) {
Expand Down

0 comments on commit e4dafb0

Please sign in to comment.