How to start a new react native project

To start a new React Native project, you can follow these steps:

Method 1: Using the React Native CLI

  1. Install the React Native CLI by running the following command in your terminal:

    npm install -g react-native-cli
  2. Create a new project by running the following command:

    npx react-native init <projectName>

    Replace <projectName> with the name of your project.

  3. Follow the prompts to choose the project template and configuration options.

Method 2: Using Expo

  1. Install Expo by running the following command:

    npm install -g expo-cli
  2. Create a new project by running the following command:

    expo init <projectName>

    Replace <projectName> with the name of your project.

  3. Follow the prompts to choose the project template and configuration options.

Method 3: Using a code editor or IDE

  1. Open your preferred code editor or IDE (e.g. Visual Studio Code, IntelliJ IDEA, etc.).

  2. Create a new directory for your project and navigate into it.

  3. Run the following command to create a new React Native project:

    npx react-native init <projectName>

    Replace <projectName> with the name of your project.

  4. Follow the prompts to choose the project template and configuration options.

Common configuration options

When creating a new React Native project, you'll be prompted to choose the following configuration options:

Next steps

Once you've created your new React Native project, you can start building your app by: