Closed matthieunelmes closed 3 years ago
To add to the above, it doesn't appear to be the actual onPress event, but when the polygon components get their stroke color updated. So it seems all child components within ZoomableSvg get rerendered when this happens. The flicker appears to only happen on Image components which I assume is due to it being an external image.
@msand love this repo and everything you've done here but appreciate you might not have time to maintain this. If you could point me in the right direction I'm happy to have a go and PR?
On further investigation, this only appears to affect functional components. I've reverted back to a class component and the flickering has disappeared. Would be nice to get to the bottom of the re-render, but I'll close this for now.
Almost appears to be triggering a re-render of the component which causes the Image to flicker. This doesn't happen with react-native-svg and only seems to occur when wrapped with the ZoomableSvg component.