Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@rn-devtools/react-navigation-plugin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rn-devtools/react-navigation-plugin

React Navigation tab for rn-devtools

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

@rn-devtools/react-navigation-plugin

A React Navigation tab for rn-devtools. It shows the focused navigator/stack, lets you trim/reset/remove routes, and invoke navigation actions from the devtools UI.

Installation

npm i @rn-devtools/react-navigation-plugin
# or
yarn add @rn-devtools/react-navigation-plugin

Usage

  • Native (in your app)

Hook into your NavigationContainer and pass your rn-devtools socket + deviceId.

// App.tsx
import React from "react";
import { Platform } from "react-native"
import { useReactNativeDevtools } from "@rn-devtools/plugin-sdk";
import { NavigationContainer, createNavigationContainerRef } from "@react-navigation/native";
import { useReactNavigationDevtools } from "@rn-devtools/react-navigation-plugin/native";

const navigationRef = createNavigationContainerRef();

export default function App() {
  useReactNativeDevtools({
    socketURL: "http://10.0.2.2:35515",
    deviceName: Platform.OS || "web",
    platform: Platform.OS || "web",
    deviceId: Platform.OS || "web",
    extraDeviceInfo: { appVersion: "1.0.0" },
    plugins: ({ socket, deviceId }) => {
      useReactNavigationDevtools({
        navigationRef: navigationRef as any,
        socket,
        deviceId,
      });
    },
  });

  return (
    <NavigationContainer ref={navigationRef}>
      {/* your navigators */}
    </NavigationContainer>
  );
}
  • Web (devtools UI)

Add the plugin to your rn-devtools config so it appears as a tab.

// rn-devtools.config.js

export default {
  plugins: ["@rn-devtools/react-navigation-plugin"],
};

FAQs

Package last updated on 20 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts