title: SyntaxError: JSON Parse error Unexpected EOF
body: <p>I am the beginner of react native. I have a problem. I am trying to get data from an api on react native but i couldn't do this. There is a compiler error that SyntaxError:JSON Parse error: Unexpected EOF</p>
  
  <pre><code>import React from 'react';
  import { FlatList, ActivityIndicator, Text, View  } from 'react-native';
  
  var api_key = "***";
  var api_secret = "***";
  
  export default class FetchExample extends React.Component {
  
    constructor(props){
      super(props);
      this.state ={ isLoading: true, dataSource: []}
    }
  
    componentDidMount(){
      fetch('https://apitest.kuveytturk.com.tr/prep/v1/data/fecs', {
        method: 'GET',
        headers: {
          Accept: 'application/json',
          'Content-Type': 'application/json',
          'appkey': api_key,
          'accesskey': api_secret,
        }
      })
        .then((response) =&gt; response.json())
        .then((responseJson) =&gt; {
  
          this.setState({
            isLoading: false,
            dataSource: responseJson.data,
  
          }, function(){
  
          });
  
        })
        .catch((error) =&gt;{
          console.error(error);
        });
    }
  
    render(){
  
      if(this.state.isLoading){
        return(
          &lt;View style={{flex: 1, padding: 20}}&gt;
            &lt;ActivityIndicator/&gt;
          &lt;/View&gt;
        )
      }
  
      return(
        &lt;View style={{flex: 1, paddingTop:20}}&gt;
          &lt;FlatList
            data={this.state.dataSource}
            renderItem={({item}) =&gt;  &lt;Text&gt;{item.region}, {item.lang}&lt;/Text&gt;}
            keyExtractor={({id}, index) =&gt; id}
          /&gt;
        &lt;/View&gt;
      );
    }
  }
  
  </code></pre>
  
  <p>Where am I making a mistake? I have been dealing with this problem for a long time, thanks for your help.</p>