Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Expo iOS simulator doesn't automatically refresh React Native app upon code changes

I’m using Expo’s iOS simulator with my React Native app. Before, it would live update / "fast refresh" when code changes were made, but it’s no longer doing that. So this is not about using the Expo Go app on my phone, but rather the Simulator on my Macbook.

I’ve checked the shake (ctrl + cmd + Z) menu, and Fast Refresh is still enabled. Running npx expo run:ios does correctly reflect the latest code, but that takes a while to run.

Any help to debug this?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

A few days ago the same thing happened to me and it depended on how I exported the main component to App.tsx.

This one doesn’t work properly:

export default () => {
  return <View/>
}

This one works:

const App = () => {
  return <View/>
}

export default App

Let me know if this helps

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading