Running react-native app in ubuntu 18.04

Jul 7, 2018 · 3 min read

These day, I’ve figured out that configuring react-native dev environment is quite difficult than it is in mac. In this article, I will explain how to setup your environment to build react-native app in ubuntu 18.04.

1. Install node and npm

If you are already an ubuntu user, or if you already have an experience in ubuntu, you may be familiar with installing node via apt like apt-get install nodejs. However, these day, it is recommended to install node via nvm which is a package manager for nodejs. Therefore, lets install nvm first.

  • Install nvm
  • Install node

2. Install Android Studio

  • Install Java
  • Install android studio
  • Configure build path in your .bash_profile or .zshrc

Reload bash_profile or .zshrc

  • Generate emulator & run emulator
  • List emulators. You will see doo1 as a result.
  • To install pixel device, you can do following.
  • Trouble shooting with permission

3. Install react-native

  • Install react-native-cli using npm.
  • Create react-native project via react-native-cli.
  • Finally run your react-native project.


  1. When facing below error,


Open source community

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store