Files
react-native-debug-console/README.md
2018-08-16 00:13:06 +02:00

57 lines
816 B
Markdown

# React Native Debug Console
A network and console debug component and modal for `react native` purely in JavaScript
[[demo]](https://expo.io/@mortenolsen/demo)
![screen](docs/assets/screen1.png)
## Installation
```
npm install react-native-debug-console
```
## Usage
It comes as a ready to use modal, as well as a standalone component
```javascript
import {
DevToolModal,
log,
network,
show,
} from 'react-native-debug-console';
network.attach();
log.attach();
const App = () => (
<View>
<MyOtherContent />
<DevToolModal />
<Button
onPress={show}
/>
</View>
)
```
```javascript
import {
DevTool,
log,
network,
} from 'react-native-debug-console';
network.attach();
log.attach();
const App = () => (
<View>
<MyOtherContent />
<DevTool />
</View>
)
```