# react-native-console-panel

> react native component for display console messages.

Latest version **0.1.0** (published 2016-09-07) · GPLv2 license · 0 weekly downloads

## Install

```sh
npm install react-native-console-panel
pnpm add react-native-console-panel
yarn add react-native-console-panel
bun add react-native-console-panel
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-09-07 |
| First published | 2015-11-20 |
| Weekly downloads | 0 |
| License | GPLv2 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 84 |
| Author | sospartan@gmail.com |
| Maintainers | sospartan |
| Keywords | react-component, react-native, ios, android, console, debug panel |

## Links

- npm: https://www.npmjs.com/package/react-native-console-panel
- Repository: https://github.com/NativeSH/react-native-console-panel
- Homepage: https://github.com/NativeSH/react-native-console-panel#readme
- Issues: https://github.com/NativeSH/react-native-console-panel/issues
- npm.io page: https://npm.io/package/react-native-console-panel

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2016-09-07
- 0.0.9 — 2016-07-11
- 0.0.8 — 2016-04-01
- 0.0.7 — 2015-12-11
- 0.0.6 — 2015-11-25
- 0.0.5 — 2015-11-25
- 0.0.4 — 2015-11-25
- 0.0.3 — 2015-11-24
- 0.0.2 — 2015-11-23
- 0.0.1 — 2015-11-20

## README

# React Native Console Panel  
A Simple debug panel component to view console message right inside the app.  
This will be helpful during your react native development.
This is a pure react native component ,you can use it in both ios and android .

**Xcode / Android Studio is not a must for React Native app development.**  
RN developers can simplify tool chain with this component when coding javascript only.  
You don't have to open any of Xcode , Android Studio or Chrome dev console for viewing js console message. A javascript editor and a emulator/device are all you need.

## Usage
### Install from npm :  
`npm install --save react-native-console-panel`

### Integrate into your app:  

```javascript
//import the component
var ConsolePanel = require('react-native-console-panel').displayWhenDev();
...
render:function(){
	return (
		<View style={styles.container}>
        	...
        	<TouchableHighlight style={styles.btn} onPress={this._onPressButton}>
          	<Text>
            Hit me!
          	</Text>
        	</TouchableHighlight>
        
        	//Panel will float above your content
        	//use top,left to control panel's position 
        	{ConsolePanel}
      </View>
      );
```
* `displayWhenDev()` will return the component or null accroding `__DEV__` flag
* `displayIgnoreDevVariable()` ignore `__DEV__` variable

### Yellowbox
The react-native add a 'Yellowbox' in **v0.16(not release yet)** for showing warn/error messages.**This module disable that by default**.
If you want to keep both yellowbox  and console ,you should import like this `require('react-native-console-panel/keep-yellowbox')`.

Now, when you use 'console' to print something , it will be like this:  
![screenshot](https://github.com/sospartan/react-native-console-panel/raw/master/demo.gif )

### Avaiable props:

```javascript
	propTypes:{
        limit:React.PropTypes.number,//message limit number
        open:React.PropTypes.bool,//is open when mounted
    }
```

## TO-DOs  
* <del>Count unread log when panel is closing</del>
* <del>'clear' button</del>
* System infomation shapshot
* Better looking?
* ...

**I'm new to Javascript .So any pull request is welcomed!**

---
_Source: https://npm.io/package/react-native-console-panel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
