When writing ReactNative apps, it’s pretty common to use a thing called Expo. It’s basically a library that sits on top of ReactNative. It includes a bunch of APIs and components that you’ll probably need; and it helps with things like deploying to app stores.
To see a full list of all the goodies included in Expo, you can take a look here. Poke around a little bit, you’ll get to play with some of that stuff very soon. Think of the possibilities…
Expo and ReactNative are pretty particular about what Node version is supported. And even if you have the right Node version installed then things can go haywire.
If you are running Linux and you installed Node with a Snap, go ahead and uninstall it. Really. It just falls over.
Here is one error you might come across if you installed Node in a non-standard way.
NVM === Node Version Manager. It does a lot of cool stuff that we don’t need to know about at this point. The main things to know are that:
Please install NVM and make sure you know how to:
.nvmrc
filesYou can find the NVM repo and documentation here
At the time of writing (June 2022) the best version of Node to use was Node 16. To install Node 16 you would use the command nvm install 16
. And to use that version of Node you would use the command nvm use 16
.
Now that you have the latest Node, you can install the Expo CLI. Read more here. You’ll also want to install the Expo Go app on your phone if you can. It’s not a requirement for this course, but it is kiff (there’s that word again).
Now follow this tutorial to make a new app.
The pages we linked to here have a lot of information. Double check that you can answer the following questions: