Skip to content
This repository was archived by the owner on Nov 9, 2018. It is now read-only.
This repository was archived by the owner on Nov 9, 2018. It is now read-only.

How can we add onPress in react-native-svg-parser? #16

@harisanwar64

Description

@harisanwar64

Thanks for this great SVG parser.
I want to do some action on different SVG parts on same screen so, how can we add onPress/onClick functionality in react-native-svg-parser?
Just like,

<svg version="1.1" id="Layer_1" onPress=alert('Pressed!') xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 595.3 841.9" style="enable-background:new 0 0 595.3 841.9;" xml:space="preserve">

This returns an error.

Thanks in advance :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions