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

Crash: removedChildren count (0) was not what we expected (1) in iOS #62

Closed
iamitkhatkar opened this issue Nov 14, 2018 · 9 comments
Closed

Comments

@iamitkhatkar
Copy link

I am using LineChart with bezier and its working fine in android but showing error
in iOS. App is getting data from firebase then it updates the states. chart renders correctly in android but crashes on ios

`<LineChart

data={{
  labels: this.state.chartLable,
  datasets: [{
    data: this.state.chartData
  }]
}} 
width={wp('96%')} 
height={220}
chartConfig={{
  backgroundColor: '#26d292',
  backgroundGradientFrom: '#22c393',
  backgroundGradientTo: '#22e093',
  decimalPlaces: 2, // optional, defaults to 2dp
  color: (opacity = 1) => `rgba(255, 255, 255, ${opacity})`,
  style: {
    borderRadius: 16,
  }
}}
bezier
style={{
  marginVertical: 8,
  borderRadius: 16,
}}

/>`

screenshot 2018-11-14 at 12 31 08 pm

@nada-elhakim
Copy link

nada-elhakim commented Nov 19, 2018

I got the same error and it was resolved when I used the following versions together:
"react-native-chart-kit": "1.1.8",
"react-native-svg": "6.2.2"

@iamitkhatkar
Copy link
Author

I got the same error and it was resolved when I used the following versions together:
"react-native-chart-kit": "1.1.8",
"react-native-svg": "6.2.2"

not working :(

@mbm-code
Copy link

Same issue, Any idea ?

@under94
Copy link

under94 commented Dec 14, 2018

some issue

@cristian1703
Copy link

try using "react-native-svg": "6.3.1" with "react-native-chart-kit": "^1.2.1"

@tatsna
Copy link

tatsna commented Dec 26, 2018

some issue , How to solve ?

@Grandmac
Copy link

Grandmac commented Jan 7, 2019

Take a look here

software-mansion/react-native-svg#258 (comment)

@Hermanya
Copy link
Contributor

in the 2.0.0 release I wrapped all array renders into <G>s, this should be fixed now

msand added a commit to software-mansion/react-native-svg that referenced this issue Feb 9, 2019
msand added a commit to software-mansion/react-native-svg that referenced this issue Feb 9, 2019
@msand
Copy link

msand commented Feb 9, 2019

I've published a fix in v9.2.4 of react-native-svg, can you try with that?
The root cause is the Defs ViewManager returning nil for the shadowView, so the more efficient way to workaround this if you want backwards compatibility with pre v9.2.4 is to wrap the Defs elements in a G, rather then the dynamic content.

JackWillie added a commit to JackWillie/react-native-svg that referenced this issue Nov 27, 2022
JackWillie added a commit to JackWillie/react-native-svg that referenced this issue Nov 27, 2022
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

9 participants