Home Posts Artwork CV

React Native Android setup

Created 16 June 2020

Updated 17 June 2020

Programming computers is hard. We’re reminded of that every day we sit down to work. But before you can even get to programming, you have to set up your computer so that the program can have a chance to run. This can be tricky, depending on matching up operating systems, packages, and versions of software.

I had the pleasure of setting up an environment for React Native. React Native is a way to use the JavaScript library React to make iOS and Android applications. You really can use JavaScript for everything these days.

First, follow the instructions on React Native's site to install the software packages needed to develop in Android on my Mac. Yes, developing for Android on a Mac. Sometimes you gotta do what you gotta do.

Next, if you’re plugging into an existing project is to run npm install in the terminal from the project’s directory, so you have all the packages up to date.

Then, type npm run android to compile and run the project. If everything is in order, the application will run. For me, though, that wasn’t the case. My terminal filled with errors. If that happens to you, here are some things to check out. They are problems that I had, and solving them helped me get React Native working on my Mac:

With those you should solve the problems in environment setup and start developing. I hope this post helps!

Further reading. The solutions above were in the following StackOverflow pages: