Error loading localhost

Asked

Viewed 72 times

-1

When running my React Native code in the Xcode simulator, it returns some error in localhost. But I didn’t touch the code, I just created the project and ran it.

inserir a descrição da imagem aqui

  • 1

    Check the tips that the error itself returns, if you do not understand English use a translator. A tip would be to check all steps of the React Native installation and its requirements.

  • 1

    Try to run like this, open two terminals in the same project folder and run the separate metro first react-native start and at the other terminal react-native run-ios and choose the emulator of your choice.

1 answer

0


I don’t know if you’ve solved it yet, but sometimes it’s not a problem. Sometimes it takes a long time to download the app pro simulator and then it shows that it was an error, but it hasn’t finished receiving the app yet. See your Bundle metro window. It shows the load. Often also resets the cache with the React-Native start --reset-cache command in the project folder.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.