Lots of UI updates

This commit is contained in:
2018-08-16 00:13:06 +02:00
parent 38b440e2f6
commit d92bd0c586
24 changed files with 637 additions and 225 deletions

57
README.md Normal file
View File

@@ -0,0 +1,57 @@
# 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>
)
```