Skip to content
Coding Fanatic
  • Android Development
  • News and Reviews
  • Road2Pro
  • Tutorials
  • Services
  • About

Oopsie Daisies, 30/100 Days of Code

  • June 1, 2019June 1, 2019
  • by Richard Clarke

I made a small mistake while setting up my app on my personal computer.

To be fair, I haven’t used Git in a long time now. Lately I’ve been copying and pasting code right into Github.

I know, I’m stepping backwards. I had my reasons.

Anyway, I created a new local directory for the app files and configured git to pull from the repo. After I pulled the files, I tried running the application and got an error saying I need to run npm install.

I forgot the key ingredient! To run React Native apps, you first have to initialize the application. I only kept some of the project files in Github because the collective size is too large to host in a repo. No matter, I knew what to do next.

I renamed the project folder to actualTravel in preparation for the upcoming steps. (click below)

I changed directories to the root of my workspace and initialized a new React Native application. (click below)

I moved the actualTravel folder contents into the Travel folder to save time. (click below)

Finally, I ran my application on the Android Virtual Device! (click below)

Enter, Infinite Loop. I think copying the actualTravel folder into Travel might have caused a problem with the resources in that folder. I might have misused the mv command. Next time I will use the GUI to copy the files in directly instead.

Silver Lining: Next time I know exactly how to set everything up without error.

-CF

Related

Truthy or Falsy, 29/100 Days of Code
Infinite Loop, 31/100 Days of Code
Richard Clarke
Richard is currently a developer using Java and Android Studio to build custom applications for Android. Richard tutored in mathematics at Montgomery College, and worked in Information Technology before entering the Software Development industry as a Quality Engineer.
100daysofcode AndroidDev javascript react-native

Related articles

Your New Favorite Stopwatch App!…
Two for Two BABY! 7…
…But the App is for…
Play Store Blues – 5…
Top 4 Tips for Android…
No Dice – 3 of…

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Join the mailing list!

This field is required.

Check your inbox or spam folder to confirm your subscription.

Follow me on social media!

  • GitHub
  • YouTube
  • X
  • Instagram
  • LinkedIn
My Tweets

Join the mailing list!

This field is required.

Check your inbox or spam folder to confirm your subscription.

Follow me on social media!

  • X
  • GitHub
  • LinkedIn
  • YouTube

Archives

Theme by Colorlib Powered by WordPress