Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

276
Views
React Native: Expo's Fast Refresh feature only works in App.js properly in Expo GO mobile app

I have the following folder structure

my-app/
├─ node_modules/
├─ src/
│ ├─ RepositoryItem.jsx
│ ├─ RepositoryList.jsx
│ ├─ Main.jsx
├─ package.json
├─ README.md
├─ App.js

RepositoryList and RepositoryItem are imported into Main.jsx. Main.jsx imported into App.js

If I modify the code in App.js or Main.js, and save it. The Expo GO app immediately shows the changes.

If I modify RepositoryList.jsx or RepositoryItem.jsx components and save, fast refresh happens, but the changes are not shown. Only if i manually reload the app.

If I modify RepositoryList.jsx component AND Main.jsx. The changes in Main.jsx are shown immediately, bit the changes in RepositoryList.jsx only after a manual reload.

Also if I change RepositoryItem or RepositoryList... "Refreshing... Using Fast Refresh shows" but the changes are not reflected in the app

I tried it with a phone and a tablet, problem is present on both devices.

Is there a way to fix this?

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

You are using JSX files (RepositoryItem.jsx; RepositoryList.jsx; Main.jsx). Have you tried changing the extension just to JS? (Javascript) I.e: RepositoryItem.js

about 4 years ago · Juan Pablo Isaza Report

0

Fast Refresh works in files that are nested in subfolders like RepositoryList.js and RepositoryItem.js.

Why it didn't refresh for me is because in RepositoryList I return a FlatList component, and inside of that the renderItem is the RepositoryItem. Like so:

return (
    <View>
        <FlatList
            data={repositories}
            ItemSeparatorComponent={ItemSeparator}
            renderItem={RepositoryItem}
        />
    </View>
);

Now the question is: Why does Fast Refresh not work if I change RepositoryItem, which is the renderItem attribute of FlatList?

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!