Skip to content

[Windows] SVG disappears when navigate to another page #32

@tgldr

Description

@tgldr

Hi @marlenecota, Thanks for working on react-native-svg Windows support.
We are making a Windows app using react-native, react-navigation and react-native-windows.

But when we navigate to some page and go back to home screen, then our SVGs in home screen are all disappears.
So I dive in to react-native-svg code base and found that Unload() method is the root cause of it.

https://github.com/software-mansion/react-native-svg/blob/main/windows/RNSVG/SvgView.cpp#L180

I am not expert of C++, If I remove this code It fixes, but I don't want to just remove it. So could you please take a look and provide the best solution for it? I am wondering is there any reverse solution like Reload or Load method.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions