Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
react-native-console-panel
Advanced tools
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.
npm install --save react-native-console-panel
//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__
flagdisplayIgnoreDevVariable()
ignore __DEV__
variableThe 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:
propTypes:{
limit:React.PropTypes.number,//message limit number
open:React.PropTypes.bool,//is open when mounted
}
I'm new to Javascript .So any pull request is welcomed!
FAQs
react native component for display console messages.
The npm package react-native-console-panel receives a total of 2 weekly downloads. As such, react-native-console-panel popularity was classified as not popular.
We found that react-native-console-panel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.