Created
September 23, 2025 21:56
-
-
Save hamdymohamedak/ccd298c20eb8c75a29003fb249ac9c8f to your computer and use it in GitHub Desktop.
This command cleans the React Native project by removing old build files and the node_modules folder, then reinstalls all dependencies. After that, it regenerates the Android codegen artifacts used by TurboModules and Fabric. It helps fix build errors, dependency conflicts, and issues with native modules by starting from a clean state.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rm -rf node_modules android/app/build android/build android/.cxx android/app/.cxx && npm install --legacy-peer-deps && cd android && ./gradlew generateCodegenArtifactsFromSchema |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.