- Regenerate Expo example apps in a temporary directory, then copy the fresh scaffold into place.
- Before replacing an example app, move the current app directory to
/tmpso repo-specific files can be restored selectively. - Avoid image churn: preserve existing tracked image assets unless the task explicitly asks to update them or the new SDK requires an asset change.
- After copying a generated app into
examples/, remove the generated.gitdirectory andnode_modules, then reinstall from inside the repo workspace.
- Generate from the Expo blank TypeScript template:
yarn create expo-app /tmp/rntl-basic-fresh --template blank-typescript --yes
- Restore these repo-specific files on top of the fresh scaffold:
App.tsxcomponents/__tests__/theme.tsjest.config.jsjest-setup.tsbabel.config.jseslint.config.mjsREADME.mdAGENTS.md- existing tracked image assets in
assets/ .expo-shared/assets.jsonif it existed before
- Keep the fresh Expo entrypoint
index.ts. - Update
package.jsonandapp.jsonto match repo naming and scripts. Keepapp.jsonpointing at the restored existing image assets unless changing them is intentional.
- Generate from a router-enabled Expo scaffold:
yarn create expo-app /tmp/rntl-cookbook-fresh --example with-router --yes
- Restore these repo-specific files on top of the fresh scaffold:
app/- tutorial test directories such as
basics-tutorial/andbasics-tutorial-react-strict-dom/ theme.tsjest.config.jsjest-setup.tsbabel.config.js.eslintrc.eslintignoreREADME.mdAGENTS.md- custom assets not present in the scaffold, such as
assets/gradientRNBanner.png - existing tracked image assets in
assets/ .expo-shared/assets.jsonif it existed before
- Keep the fresh Expo Router entry setup.
- Reapply the cookbook-specific dependency set in
package.jsonandapp.json. Keepapp.jsonpointing at the restored existing image assets unless changing them is intentional.
- Run these commands from inside the regenerated app directory:
yarn expo install --checkyarn lintyarn typecheckyarn test --watchman=false
- If the fresh scaffold causes dependency-resolution churn, restore the previous
yarn.lockfirst and then runyarn installinstead of re-resolving the full tree.