Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
react-native-graphview
Advanced tools
This version is only for the android
npm install --save react-native-graphview
react-native link react-native-graphview
include ':react-native-graphview'
project(':react-native-graphview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-graphview/android/app')
import com.reactnativegraphview.GraphPackage;
public class MainApplication extends Application implements ReactApplication {
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new GraphPackage()
);
}
}
dependencies {
implementation project(':react-native-graphview')
}
Props | Description |
---|---|
data | same props to all graph types |
import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { LineGraph, BarGraph, PointsGraph } from 'react-native-graphview';
const data = [{x: 0, y: 1}, {x: 1, y: 5}, {x: 2, y: 9}, {x: 3, y: 2}, {x: 4, y: 6}];
export default class App extends Component{
render() {
return (
<View style={styles.container}>
<LineGraph
style={{
height: 400,
width: 400
}}
data={[{x: 0, y: 1}, {x: 1, y: 5}, {x: 2, y: 9}, {x: 3, y: 2}, {x: 4, y: 6}]} />
<BarGraph
style={{
height: 400,
width: 400
}}
data={[{x: 0, y: 1}, {x: 1, y: 5}, {x: 2, y: 9}, {x: 3, y: 2}, {x: 4, y: 6}]} />
<PointsGraph
style={{
height: 400,
width: 400
}}
data={[{x: 0, y: 1}, {x: 1, y: 5}, {x: 2, y: 9}, {x: 3, y: 2}, {x: 4, y: 6}]} />
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
}
});
FAQs
React Native Graph View
The npm package react-native-graphview receives a total of 0 weekly downloads. As such, react-native-graphview popularity was classified as not popular.
We found that react-native-graphview 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.