Graphics Component for React Native?

Asked

Viewed 2,227 times

-1

Hello I am new in developing with React Native, there is some good graphic component for the platform?

  • speak in English...

  • This portal is in Portuguese, if you want help, speak in Portuguese.

  • Hello I am new in developing with React Native, there is some good graphic component for the platform?

1 answer

1


I’ve used this component graphics. It is very simple and useful.

Under-implemented:

import React from 'react'
import { LineChart, Grid } from 'react-native-svg-charts'

class LineChartExample extends React.PureComponent {
    render() {

        const data = [ 50, 10, 40, 95, -4, -24, 85, 91, 35, 53, -53, 24, 50, -20, -80 ]

        return (
            <LineChart
                style={{ height: 200 }}
                data={ data }
                svg={{ stroke: 'rgb(134, 65, 244)' }}
                contentInset={{ top: 20, bottom: 20 }}
            >
               <Grid/>
            </LineChart>
        )
    }
}
  • 1

    Hello Vinicius, thank you so much for the reply I will take a look at this. : )

  • 1

    I removed the part in English because this site is all in Portuguese (if the question was put in English by mistake, it still does not justify answering in English). Another detail is that it would be interesting to put at least some code or explanation of how to use the component, because answers that only have a link are not considered good answers. If it’s just to leave a link, do it by the comments - this avoids possible negatives, which I was not the one who gave :-)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.