@@ -180,6 +180,8 @@ function isActiveRoute(routePath: Route): boolean {
180180/**
181181 * Navigates to a specified route.
182182 * Main navigation method for redirecting to a route.
183+ * For detailed information about moving between screens,
184+ * see the NAVIGATION.md documentation.
183185 *
184186 * @param route - The route to navigate to.
185187 * @param options - Optional navigation options.
@@ -326,6 +328,9 @@ function goUp(backToRoute: Route, options?: GoBackOptions) {
326328}
327329
328330/**
331+ * Navigate back to the previous screen or a specified route.
332+ * For detailed information about navigation patterns and best practices,
333+ * see the NAVIGATION.md documentation.
329334 * @param backToRoute - Fallback route if pop/goBack action should, but is not possible within RHP
330335 * @param options - Optional configuration that affects navigation logic
331336 */
@@ -347,6 +352,11 @@ function goBack(backToRoute?: Route, options?: GoBackOptions) {
347352 navigationRef . current ?. goBack ( ) ;
348353}
349354
355+ /**
356+ * Navigate back to the sidebar screen in SplitNavigator and pop all central screens from the navigator at the same time.
357+ * For detailed information about moving between screens,
358+ * see the NAVIGATION.md documentation.
359+ */
350360function popToSidebar ( ) {
351361 setShouldPopToSidebar ( false ) ;
352362
@@ -537,6 +547,8 @@ function getReportRouteByID(reportID?: string, routes: NavigationRoute[] = navig
537547
538548/**
539549 * Closes the modal navigator (RHP, onboarding).
550+ * For detailed information about dismissing modals,
551+ * see the NAVIGATION.md documentation.
540552 */
541553const dismissModal = ( ref = navigationRef ) => {
542554 isNavigationReady ( ) . then ( ( ) => {
@@ -546,6 +558,8 @@ const dismissModal = (ref = navigationRef) => {
546558
547559/**
548560 * Dismisses the modal and opens the given report.
561+ * For detailed information about dismissing modals,
562+ * see the NAVIGATION.md documentation.
549563 */
550564const dismissModalWithReport = (
551565 { reportID, reportActionID, referrer, moneyRequestReportActionID, transactionID, backTo} : ReportsSplitNavigatorParamList [ typeof SCREENS . REPORT ] ,
0 commit comments