Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save karthiks/f0b5445a52fe4f2d9f2436f0f5dcc4ea to your computer and use it in GitHub Desktop.
Save karthiks/f0b5445a52fe4f2d9f2436f0f5dcc4ea to your computer and use it in GitHub Desktop.
Bash script to setup Demo React Native project on Ubuntu OS
# Install Expo (for easy creation, bundling and maintenance of project for cross-platform)
npm i -g expo-cli
# Getting dirty with Expo
expo --help # to see commands list
expo register # to sign-up with the site
expo login
expo logout
expo login
expo whoami
# Create Expo project
npx create-expo-app demo # my-project-name and choose "blank" option from it!
cd demo
# To open the project in WSL2 in VS Code in Windows 11 OS.
code .
# This opens up the web-browser showing you the management portal
REACT_NATIVE_PACKAGER_HOSTNAME=<windows_host_ip> npm start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment