npx rn-new@latest
Clone
Run commands:
rm -rf node_modules package-lock.json
npm install
npm install --save-dev typescript @types/react @types/react-native
npm install expo
npm install nativewind npm install --save-dev tailwindcss
-
Create and switch to new branch git switch -c feature/explore-page
-
Make changes to your code Edit files, add new features, etc.
-
Stage your changes git add .
-
Commit your changes git commit -m "Add explore page grid layout"
-
Push the new branch to remote repository git push -u origin feature/explore-page
-
Later, switch back to main branch git switch main
-
Merge your feature branch (when ready) git merge feature/explore-page
List all branches git branch
List all remote branches git branch -r
List all branches (local and remote) git branch -a
Switch to existing branch git switch branch-name
Delete local branch git branch -d branch-name
Delete remote branch git push origin --delete branch-name