Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

163
Views
Gráfico circular nativo de React que muestra un error con n.requireNativeComponent

Problema con React Native - react-native-pie-chart

He estado trabajando con javascript, nodejs y react durante un tiempo y decidí intentar reaccionar de forma nativa. Sin embargo, cuando traté de usar un gráfico circular con react-native-pie-chart o react-native-pie, recibí un error (el mismo en ambas ocasiones). El error que tuve fue:

 (0 , n.requireNativeComponent) is not a function Evaluating @react-native-community/art.js Evaluating react-native-pie-chart.jse here

Esto es bastante confuso para mí, ya que el módulo parece funcionar para la mayoría de las personas.

El código que tenía era:

 import * as React from 'react'; import { Text, View, StyleSheet, Image } from 'react-native'; import { Card } from 'react-native-paper'; import PieChart from 'react-native-pie-chart'; export default function Stats({ data }) { const widthAndHeight = 250 const series = [123, 321, 123, 789, 537] const sliceColor = ['#F44336','#2196F3','#FFEB3B', '#4CAF50', '#FF9800'] return ( <View style={styles.container}> <PieChart widthAndHeight={widthAndHeight} series={series} sliceColor={sliceColor} doughnut={true} coverRadius={0.45} coverFill={'#FFF'} /> </View> ) export default Stats

Se agradecería ayuda para arreglar esto. ¡Gracias! :)

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!