Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-native-canvas-anonymous
Advanced tools
A Canvas component for React Native
npm install react-native-webview
react-native link react-native-webview
npm install react-native-canvas
import React, { Component } from 'react';
import Canvas from 'react-native-canvas';
class App extends Component {
handleCanvas = (canvas) => {
const ctx = canvas.getContext('2d');
ctx.fillStyle = 'purple';
ctx.fillRect(0, 0, 100, 100);
}
render() {
return (
<Canvas ref={this.handleCanvas}/>
)
}
}
Reflects the height of the canvas in pixels
Reflects the width of the canvas in pixels
Returns a canvas rendering context. Currently only supports 2d context.
Returns a Promise
that resolves to DataURL.
Standard CanvasRenderingContext2D. MDN. Only difference is await
should be used to retrieve values from methods.
const ctx = canvas.getContext('2d');
WebView Image constructor. Unlike in the browsers accepts canvas as first argument. MDN
const image = new Image(canvas, height, width);
FAQs
react-native-canvas-anonymous
The npm package react-native-canvas-anonymous receives a total of 0 weekly downloads. As such, react-native-canvas-anonymous popularity was classified as not popular.
We found that react-native-canvas-anonymous 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.