title: Using Ajax on React Native
body: <p>I am working on react native with javascript, where I want to execute a python script. I want to use this code in there:</p>
  
  <pre><code>  return $.ajax({
      type: 'GET',
      url: 'test.py',
  
      success: function(response) {
        console.log(response);
      },
      error: function(response) {
        return console.error(response);
      }
    });
  </code></pre>
  
  <p>But I get the error that the code is unreachable. For some reason react native can't use ajax. Do you know how I use ajax correctly in react native?</p>