🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@dev-plugins/react-navigation

Package Overview
Dependencies
Maintainers
26
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dev-plugins/react-navigation

Expo DevTools Plugin for React Navigation

0.3.1
latest
Source
npm
Version published
Weekly downloads
34K
14.62%
Maintainers
26
Weekly downloads
 
Created
Source

@dev-plugins/react-navigation

A React Navigation DevTool that can run in an Expo App

Installation

Add the package to your project

npx expo install @dev-plugins/react-navigation

Usage

Using with react-navigation

Integrate react-navigation with the DevTool hook

import { useNavigationContainerRef } from '@react-navigation/native';
import { useReactNavigationDevTools } from '@dev-plugins/react-navigation';

export default function App() {
  const navigationRef = useNavigationContainerRef();
  useReactNavigationDevTools(navigationRef);

  return <NavigationContainer ref={navigationRef}>{/* ... */}</NavigationContainer>;
}

Using with expo-router

When using expo-router, integrate the DevTool in your main _layout.tsx file. You can import useNavigationContainerRef directly from expo-router and pass it to useReactNavigationDevTools:

import { useNavigationContainerRef } from 'expo-router';
import { useReactNavigationDevTools } from '@dev-plugins/react-navigation';

export default function RootLayout() {
  const navigationRef = useNavigationContainerRef();
  useReactNavigationDevTools(navigationRef);

  return <Stack />
}

In this case, expo-router automatically manages the navigation container, so you just need to add the DevTool setup in your layout component.

Keywords

expo

FAQs

Package last updated on 05 May 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