mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-08 09:24:57 +08:00
- @react-navigation/bottom-tabs@5.11.3 - @react-navigation/compat@5.3.11 - @react-navigation/core@5.15.0 - @react-navigation/devtools@5.1.19 - @react-navigation/drawer@5.11.5 - @react-navigation/material-bottom-tabs@5.3.11 - @react-navigation/material-top-tabs@5.3.11 - @react-navigation/native@5.9.0 - @react-navigation/routers@5.7.0 - @react-navigation/stack@5.13.0
@react-navigation/devtools
Developer tools for React Navigation.
Installation instructions and documentation can be found on the React Navigation website.
Installation
Open a Terminal in your project's folder and run,
yarn add @react-navigation/devtools
Usage
For redux dev tools extension integration, you can pass a ref to the container:
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { useReduxDevToolsExtension } from '@react-navigation/devtools';
export default function App() {
const navigationRef = React.useRef();
useReduxDevToolsExtension(navigationRef);
return (
<NavigationContainer ref={navigationRef}>{/* ... */}</NavigationContainer>
);
}