Getting Error while working with Charts in React Native

47 Views Asked by At

Im trying to make a Donut Chart in react native app and I have tried Libreries like Victory-native and react-native-gifted-charts. None of these works for me. They all are giving similar kind of error like that none of these file exist:Error Screenshot

Error screenshot 2

import { StyleSheet, Text, View } from 'react-native'
import React from 'react'
import { BarChart, LineChart, PieChart, PopulationPyramid } from "react-native-gifted-charts";

const App = () => {
  const data=[ {value:50}, {value:80}, {value:90}, {value:70} ]
  return (
    <View>
      <BarChart data = {data} horizontal />
    </View>
  )
}

export default App
const styles = StyleSheet.create({})
0

There are 0 best solutions below