import React from 'react'; import {View, StyleSheet, Text} from 'react-native'; import Svg, {Polyline, Polygon, Rect, G} from 'react-native-svg'; const Graph = props => { const graphHeight = 100; const data = []; for(let i=0; i < 300; ++i) { data.push( Math.random() * 100); } const coordStr = data.map((element, i) => `${i*2}, ${element}`); return ( ); }; export default Graph;