Hello.
I have created
New elements were drawn, but old elements were not re-drawn with new properties.
But if these elements will have hided before they are re-draw - they will be shown successful.
What can I do?
I have found a method to resolve this problem. I have added increasing the KEY parameter:
<Svg width={width} height={height} key={this.k++}>
Thanks @proteye for your workaround, it worked for me too.
But I have a feeling it should not be necessary... @magicismight is there an explanation for the SVG component to not re-render when state or props is updated (on old elements)?
Having this same question.
I have a PR open fixing this: https://github.com/react-native-community/react-native-svg/pull/596
Most helpful comment
I have found a method to resolve this problem. I have added increasing the KEY parameter:
<Svg width={width} height={height} key={this.k++}>