Skip to content

Instantly share code, notes, and snippets.

@vincicat
Created November 4, 2025 15:23
Show Gist options
  • Select an option

  • Save vincicat/0c9f6d3f1cd3b874e7b454fa015ba943 to your computer and use it in GitHub Desktop.

Select an option

Save vincicat/0c9f6d3f1cd3b874e7b454fa015ba943 to your computer and use it in GitHub Desktop.
React Native Setup Script 2025 edition (no expo)
#!/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