Skip to content

Commit

Permalink
fix: fix the navigation when a notification is clicked(OK-32655) (#5912)
Browse files Browse the repository at this point in the history
  • Loading branch information
huhuanming authored Sep 25, 2024
1 parent 4ebd88e commit 15075a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/shared/src/utils/notificationsUtils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { StackActions } from '@react-navigation/native';
import { isNil } from 'lodash';

import type { IAppNavigation } from '@onekeyhq/kit/src/hooks/useAppNavigation';
Expand Down Expand Up @@ -113,11 +114,11 @@ async function navigateToNotificationDetail({
params,
});
} else {
// navigate\pushModal\pushFullModal
global.$navigationRef.current?.navigate(
const pushAction = StackActions.push(
modalParams.screen,
modalParams.params,
);
global.$navigationRef.current?.dispatch(pushAction);
}
}
}
Expand Down

0 comments on commit 15075a3

Please sign in to comment.