Reproduce:
- I created a new expo app using npx create-expo-app
- Made some small changes to use custom native builds (https://docs.expo.dev/guides/adopting-prebuild/)
- Added
expo.extra.foo = 'bar'in myapp.jsonfile - In the example app, displayed that value by referencing
Constants.expoConfig.extra.foo - Run
npx expo run:android - It works, "bar" is deplayed.
- Change
expo.extra.footo'baz' - Run
npx expo run:android - It doesn't work, "bar" is still displayed
- Run
npx expo prebuild - Run
npx expo run:android - It still doesn't work, "bar" is still displayed
- Run
npx expo prebuild --clean - Run
npx expo run:android - The value has been update to "baz"