Language:

Search

Creating project & its structure

  • Share this:
post-title

Create Project

 

To create new project in react native, type and execute below command in command line,

npx react-native init sampleapp

When we execute above command, the react native will download template and some things which are needed to develop react native app. If react-native package is not installed on your system

It will ask like below,

>npx react-native init sampleapp
Need to install the following packages:
  react-native
Ok to proceed? (y) y

Once you enter 'y' value, then it will download react-native package and installed it. After that, it will automatically download respect react native template for our project

 

Project Structure

 

The project structure of react native look like below,

We will discuss further on upcoming section.

 

Siva P SV

Siva P SV

I am developer and blogger. I am experienced in PHP, .NET, Android, Ionic, I know these kind of language. Because, I would like to learn new things in this world. I am still learning much more things. Oh, I forgot to mention that I am also one of the Co-Founders of Tuty Rocks