Created
November 4, 2025 15:23
-
-
Save vincicat/0c9f6d3f1cd3b874e7b454fa015ba943 to your computer and use it in GitHub Desktop.
React Native Setup Script 2025 edition (no expo)
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
| #!/bin/sh | |
| APP_NAME=$1 | |
| npx @react-native-community/cli@latest init $APP_NAME --skip-install | |
| cd $APP_NAME | |
| # setup morden yarn via corepack and using node_modules directory becoz a lot of libraries need that | |
| echo 'nodeLinker: "node-modules"' > .yarnrc.yml | |
| # make sure you have corepack installed | |
| # npm install -g corepack | |
| corepack enable yarn | |
| yarn set version stable | |
| yarn install | |
| # pod install or just yarn ios as they are moving away from cocoapods | |
| # cd ios; pod install; cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment