这是indexloc提供的服务,不要输入任何密码
Skip to content

"Dom-less" start for just generating result svg [Enhancement] #693

@pid0r-3blan

Description

@pid0r-3blan

Is your feature request related to a problem? Please describe.
I'm trying to find a way to use Two.js in react-native because we want to reuse existing renders from our web app. I saw this issue #159, but want to try another way.

In RN there's a package https://github.com/software-mansion/react-native-svg and despite the fact that it does not implement all the features of svg, we can at least try. So the problem I have is that I probably need to attach to some DOM element to start using Two.js instance, but of course there's no web-DOM in RN. So I'm wondering if there's a way to get a resulting svg structure, but without trying to render it to DOM (I called it "dom-less" render)? I have static renders without animations, so I need to get only first state of the render. Then I can try to translate it to react-native-svg components.

Could you give me a hint?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions