Oopsie Daisies, 30/100 Days of Code
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