mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-01-12 22:51:18 +08:00
The `devtools` package extracts the redux devtools extension integration to a separate package. In future we can add more tools such as flipper integration to this package.
Usage:
```js
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>
);
}
```
11 lines
174 B
JSON
11 lines
174 B
JSON
{
|
|
"extends": "../../tsconfig",
|
|
"references": [
|
|
{ "path": "../core" },
|
|
{ "path": "../routers" }
|
|
],
|
|
"compilerOptions": {
|
|
"outDir": "./lib/typescript"
|
|
}
|
|
}
|