mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-12 17:31:06 +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>
);
}
```
20 lines
531 B
JSON
20 lines
531 B
JSON
{
|
|
"extends": "satya164",
|
|
"settings": {
|
|
"react": { "version": "16" },
|
|
"import/core-modules": [
|
|
"@react-navigation/core",
|
|
"@react-navigation/native",
|
|
"@react-navigation/routers",
|
|
"@react-navigation/compat",
|
|
"@react-navigation/stack",
|
|
"@react-navigation/drawer",
|
|
"@react-navigation/bottom-tabs",
|
|
"@react-navigation/material-top-tabs",
|
|
"@react-navigation/material-bottom-tabs",
|
|
"@react-navigation/devtools"
|
|
]
|
|
},
|
|
"env": { "browser": true, "node": true }
|
|
}
|