In my app I have the following:
axios.get( '/game' ).then( ({ data }) => this.setState( { game:data } ) )
...
render() {
const { game } = this.state
return <View>
{game && <SvgXml xml={game}/>}
</View>
}
That works like a charm so far.
Now I want to add stuff like onPress
-listeners to certain elements of the SVG and also to analyze the content of the XMl, for example, to count the specific items.
Is there a way to accomplish that out-of-box?