Files
react-navigation/packages/devtools
2020-08-04 12:32:11 +02:00
..
2020-06-15 13:53:17 +02:00
2020-07-28 14:08:02 +02:00
2020-06-15 13:53:17 +02:00
2020-08-04 12:32:11 +02:00
2020-06-15 13:53:17 +02:00

@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>
  );
}