title: How to get Element Properties in React Native on a Click Event
body: <p>How should I access the properties of an element without using the 'this' keyword in React Native? I have a function with which the parent class itself is bound as 'this' but I want to access the properties of the element that is being clicked. Here's the code-</p>
  
  <pre><code>import {Circle} from 'react-native-svg';
  export default App extends Component {
    constructor(props) {
    super(props);
    this.state = {activeX: null}
   }
  
   handleTouch(event) {
     const x = event.target.cx; //How to access "cx" property here?
     this.setState({ activeX: x });
   }
  
   render() {
     return (
       &lt;Circle cx='10' cy='10' r='5' onPress={this.handleTouch.bind(this)}/&gt;
       &lt;Circle cx='20' cy='20' r='5' onPress={this.handleTouch.bind(this)}/&gt;
     );
   }
  }
  </code></pre>