Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with updating propery 'fill' of a view managed by RNSVGLine #261

Open
itsgauravjain22 opened this issue Jan 29, 2020 · 3 comments
Open

Comments

@itsgauravjain22
Copy link

I use BarChart example in my application and noticed this error. I can't find the solution on internet. Also this error was coming in Victory Native as well. Seems like error coming from 'react-native-svg' package as both libraries depend on this package

Error while updating property 'fill' of a view managed by RNSVGLine

null

java.lang.Double cannot be cast to java.lang.String

My code looks like:

<BarChart
  style={graphStyle}
  data={data}
  width={screenWidth}
  height={220}
  yAxisLabel="$"
  chartConfig={chartConfig}
  verticalLabelRotation={30}
/>

const chartConfig = {
  backgroundGradientFrom: "#1E2923",
  backgroundGradientFromOpacity: 0,
  backgroundGradientTo: "#08130D",
  backgroundGradientToOpacity: 0.5,
  color: (opacity = 1) => `rgba(26, 255, 146, ${opacity})`,
  strokeWidth: 2, // optional, default 3
  barPercentage: 0.5
};
@krishnac4java
Copy link

I get the same error with the PieChart as well. Can anyone suggest if there is a workaround for this or need to wait for the bug to be fixed.

@nobodyabcd
Copy link

Hi I downgrade "react-native-svg" version to "~9.13.3" solved my problem, please give a shot

@naimur978
Copy link

Hi I downgrade "react-native-svg" version to "~9.13.3" solved my problem, please give a shot

Worked for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants