Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-console-panel

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-console-panel

react native component for display console messages.

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

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:

//import the component
var ConsolePanel = require('react-native-console-panel').Panel;
...
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 limit={10} style={{left:20,top:20}}/>
      </View>
      );

Now, when you use 'console' to print something , it will be like this:
screenshot

Avaiable props:

	propTypes:{
        limit:React.PropTypes.number,
        open:React.PropTypes.bool,
    }

TO-DOs

  • Count unread log when panel is closing
  • 'clear' button
  • System infomation shapshot
  • Better looking?
  • ...

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

Keywords

FAQs

Package last updated on 20 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc