title: Fetch request not working in React Native - Unexpected token < in JSON at position 0 (beginner)
body: <p>I am extremely new at this and I'm trying to make a React Native app with a Flask backend. I know there have been similar posts but I haven't found one related to React Native with a solution that works yet.</p>
  <p>This is my (extremely simple) app so far. It's just supposed to show &quot;Flask says today's date is Monday&quot; on the app:</p>
  <p><a href="https://i.stack.imgur.com/uz8NP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uz8NP.png" alt="enter image description here" /></a></p>
  <p>This is my flask file:</p>
  <p><a href="https://i.stack.imgur.com/9osVa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9osVa.png" alt="enter image description here" /></a></p>
  <p>When I run expo all that's shown is &quot;Flask says the day today is&quot;. the Monday is never shown. When I inspect the page and go to console this is the exact error I'm getting:</p>
  <p><a href="https://i.stack.imgur.com/ZFrd0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZFrd0.png" alt="enter image description here" /></a></p>
  <p>Does anyone know why this isn't working? I would be eternally grateful for any advice I feel like I'm going crazy from this.</p>
  <p><em>UPDATE</em> When I do res.text() instead of res.json() and log it, I get this:
  <a href="https://i.stack.imgur.com/E4YPe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E4YPe.png" alt="enter image description here" /></a></p>