Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Reproducible example repo for a bug where expo-constants isn't in sync with app.json on Android

Notifications You must be signed in to change notification settings

ambassify/expo-constants-sync-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

expo-constants-sync-bug

Reproduce:

  1. I created a new expo app using npx create-expo-app
  2. Made some small changes to use custom native builds (https://docs.expo.dev/guides/adopting-prebuild/)
  3. Added expo.extra.foo = 'bar' in my app.json file
  4. In the example app, displayed that value by referencing Constants.expoConfig.extra.foo
  5. Run npx expo run:android
  6. It works, "bar" is deplayed.
  7. Change expo.extra.foo to 'baz'
  8. Run npx expo run:android
  9. It doesn't work, "bar" is still displayed
  10. Run npx expo prebuild
  11. Run npx expo run:android
  12. It still doesn't work, "bar" is still displayed
  13. Run npx expo prebuild --clean
  14. Run npx expo run:android
  15. The value has been update to "baz"

About

Reproducible example repo for a bug where expo-constants isn't in sync with app.json on Android

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published