Skip to content

useRoutePath is not exported by @react-navigation/native as docs suggest #12776

Closed

Description

@kevindice

Current behavior

I cannot import useRoutePath.

Expected behavior

The docs say I can import useRoutePath.
https://reactnavigation.org/docs/use-route-path

Reproduction

N/A

Platform

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Packages

  • @react-navigation/bottom-tabs
  • @react-navigation/drawer
  • @react-navigation/material-top-tabs
  • @react-navigation/stack
  • @react-navigation/native-stack
  • react-native-drawer-layout
  • react-native-tab-view

Environment

  • I've removed the packages that I don't use
package version
@react-navigation/native 7.1.17
@react-navigation/bottom-tabs 7.4.7
@react-navigation/native-stack 7.3.26
react-native-tab-view 4.1.3
react-native-screens 4.16.0
react-native-safe-area-context 5.6.1
react-native-gesture-handler 2.28.0
react-native-reanimated 3.19.1
react-native 0.79.6
node 22.20.0
yarn 4.10.0

Activity

  1. github-actions commented on Sep 30, 2025

    @github-actions

    Hey @kevindice! Thanks for opening the issue. It seems that the issue doesn't contain a link to a repro, or the provided repro is not valid (e.g. broken link, private repo, code doesn't run etc.).

    The best way to get attention to your issue is to provide an easy way for a developer to reproduce the issue.

    You can provide a repro using any of the following:

    A snack link is preferred since it's the easiest way to both create and share a repro. If it's not possible to create a repro using a snack, link to a GitHub repo under your username is a good alternative. Don't link to a branch or specific file etc. as it won't be detected.

    Try to keep the repro as small as possible by narrowing down the minimal amount of code needed to reproduce the issue. Don't link to your entire project or a project containing code unrelated to the issue. See "How to create a Minimal, Reproducible Example" for more information.

    You can edit your original issue to include a link to the repro, or leave it as a comment. The issue will be closed automatically after a while if you don't provide a valid repro.

  2. github-actions commented on Sep 30, 2025

    @github-actions

    Couldn't find version numbers for the following packages in the issue:

    • @react-navigation/native
    • @react-navigation/bottom-tabs
    • @react-navigation/stack
    • react-native-tab-view

    Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.

  3. kevindice commented on Sep 30, 2025

    @kevindice
    ContributorAuthor

    Version numbers added.

  4. added a commit that references this issue on Sep 30, 2025
    c7898c8
  5. added a commit that references this issue on Oct 4, 2025
    9982868
  6. added a commit that references this issue on Oct 10, 2025
    1c31f4f
  7. added a commit that references this issue on Nov 1, 2025
    ec9353f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions