I have been trying to implement the Fetch API to simply get JSON data from my localhost URL.
However, the JSON data does not load through the localhost. I copied the data from the localhost URL into a JSON placeholder website (myjson.com) to test with a different URL. It contained the exact same data as the localhost URL but was able to load correctly.
Is there a way to get localhost to work in Snack Expo?
You’ll have to use Ngrok or something similar to expose your computer to the internet. This isn’t related to Expo in particular but general networking.