Create a new React Native project using the Expo CLI.
You can use any of the supported package managers: npm, yarn, pnpm or bun. In the video (and throughout the course) we use yarn.
You can also choose a template to use for your project. In this video we choose the blank TypeScript template, but you can choose a different template if you prefer.
📝 Docs
[00:01] Open your terminal and type in node dash v to check that you have a suitable node version installed. You're looking for even numbered major versions which are long term support. So at this point 18 or 20. The easiest command to create in your expo app is npx create expo app. [00:21] Add help to see what other options you can pass into the CLI. Here we see we can pass in dash t or dash dash template to choose a specific template. Also we can choose which package manager to use. For example to use yarn, run the command with yarn create [00:40] And pass in dash t to also choose the template. By default, the Create x Web will use the blank template meaning notetize script. I want to use a blank template with script. Here, you need to also give your app a name, but don't worry. You can change this later. [01:00] The CLI will now create your app from the template and download any node modules needed. Now navigate into your app directory and open it in your favorite code editor. We now have a blank typescript expo react native project with a single screen. [01:22] Run yarn iOS or yarn Android to run your app on the simulator, emulator, or on a device.
Member comments are a way for members to communicate, interact, and ask questions about a lesson.
The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io
Be on-Topic
Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.
Avoid meta-discussion
Code Problems?
Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context
Details and Context
Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!