mirror of
https://github.com/morten-olsen/react-native-debug-console.git
synced 2026-02-08 00:36:26 +01:00
Update README.md
This commit is contained in:
15
README.md
15
README.md
@@ -24,6 +24,7 @@ import {
|
|||||||
DevToolModal,
|
DevToolModal,
|
||||||
log,
|
log,
|
||||||
network,
|
network,
|
||||||
|
show,
|
||||||
} from 'react-native-debug-console';
|
} from 'react-native-debug-console';
|
||||||
|
|
||||||
network.attach();
|
network.attach();
|
||||||
@@ -56,3 +57,17 @@ const AppWithComponent = () => (
|
|||||||
```
|
```
|
||||||
|
|
||||||
Both `DevTool` and `DevToolModal` has a `includeStackTrace` property, which if set will print the stack trace on errors, not just the error message. `<DevTool includeStackTrace />`
|
Both `DevTool` and `DevToolModal` has a `includeStackTrace` property, which if set will print the stack trace on errors, not just the error message. `<DevTool includeStackTrace />`
|
||||||
|
|
||||||
|
## Custom views
|
||||||
|
In addition to the included views (Console, Network and Storage), custom views can also be added using the `additionalTools` prop
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
<DevToolModal
|
||||||
|
includeStackTrace
|
||||||
|
additionalTools={[{
|
||||||
|
name: 'Features',
|
||||||
|
view: <Features />,
|
||||||
|
getData: () => 'some data for export',
|
||||||
|
}]}
|
||||||
|
/>
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user