React-Native with Expo

React-Native logo

React-Native with Expo

 I will cut out the environment setup and add a link to one of the many video tutorials you can find on YouTube here. The video linked is the one I followed to get my environment up and running, so it worked on my machine at home. I know bad developer joke.

 The whole purpose of this blog is to go over some basic techniques and methods that can be used when developing a React-Native application using expo. Mastering these techniques will give you a great advantage in developing a more complex application. I followed some basic to do list tutorials to get me started and learn react native with expo.

Any command line entries I have changed the font and made them bold so we don't confuse them with the normal text around them. 

After the environment is set up and you have created a folder to store the new application in. Navigate to that folder and run the command prompt by selecting the file path at the top this...
React-Native and Expo app directory

 Highlight all of it and type cmd then hit return. This will open the command prompt from that file location. In the command prompt enter  expo init The name of your app  For example expo init demoapp  and hit return. You will be greeted with a choice of templates to use, select blank empty canvas. This might take a few minutes to build the new app, once this has been completed navigate to the new app by entering cd demoapp or your app name. Now open Vscode from this directory by entering  code .  into the command line, this will open the new project in Vscode. To make sure the environment is set up properly, I will share my list of extensions:
  • React Native Tools - Provides a development environment for React-Native projects and makes debugging code a lot quicker. 
  • React Native/React/Redux snippets for es6/es7 - This allows for the use of code snippets, making it easier to create functional components. 
  • material icon theme - This provides a nice interface to work with and is an optional extension
  • Prettier code formatter - Another optional tool, this is used to format code. So once you save a document it aligns the code into the proper format.
Having a different extension might cause errors when developing. Don't delete any you have installed, just disable them for the project.
We are now ready to start developing, in the next post we go over buttons and alerts

Links to documentation for more learning materials
The documentation in these links will help when learning React-Native with expo, They offer everything from APIs to fundamental concepts.



Comments

Post a Comment

Popular posts from this blog

Touchable Image Components in React-Native

Buttons & Alerts in React-Native