title: JSON Parse error: Unrecognized token '<' React native
body: <p>Code so far :</p>
  
  <pre><code>fetch('http:/example.com',{
        method: 'POST',
        headers: {
          'Accept': 'application/json',
          'Content-Type': 'application/json'
        },
        body: JSON.stringify({
          Id: this.state.TextInputId
        })
        }).then((response) =&gt; response.json())
        .then((responseJson) =&gt; {
          Snackbar.show({
            title: responseJson,
            duration: Snackbar.LENGTH_SHORT,
          });
        }).catch((error) =&gt; {
          console.error(error);
        })
      this.props.navigation.navigate('Home')
  </code></pre>
  
  <p>Produces the error: <code>Parse error: Unrecognized token '&lt;' React native</code></p>