Skip to content

Document toDataURL method #1408

Open
Open
@mghahari

Description

@mghahari

Feature Request

The toDataURL method wasn't documented.

Why it is needed

The toDataURL method is implemented in this library but wasn't documented.
It is so useful that we can convert svg to png in react native. In my recent experience, I needed to use a svg image that maked dynamically as expo-three texture and it doesn't support svg.
I was lucky that found this method in an issue.
But another problem is that reference to main svg component is required to use this method but when using CssSvg, ... there is no straight forward way to get a ref to the main component and after I spend some time in reading code of this part I found that if we set the ref method in the override prop of CssSvg, ... it works but is cause some type mismatch error in the code editor.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions