Skip to content

Commit

Permalink
Fix onHostPause crash on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
yogevbd committed Nov 13, 2023
1 parent b5f6c59 commit 7acc91d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ public NavigationModule(ReactApplicationContext reactContext, ReactInstanceManag
@Override
public void onHostPause() {
super.onHostPause();
UiUtils.runOnMainThread(() -> navigator().onHostPause());
UiUtils.runOnMainThread(() -> {
if (navigator() != null) navigator().onHostPause();
});
}

@Override
Expand Down

0 comments on commit 7acc91d

Please sign in to comment.