@react-native-community/cli

  • Version 5.0.1
  • Published
  • 720 kB
  • 37 dependencies
  • MIT license

Install

npm i @react-native-community/cli
yarn add @react-native-community/cli
pnpm add @react-native-community/cli

Overview

React Native CLI

Index

Variables

Functions

Variables

variable bin

const bin: string;

    Functions

    function init

    init: (projectDir: string, argsOrName: string | string[]) => Promise<void>;
    • Creates the template for a React Native project given the provided parameters:

      Parameter projectDir

      Templates will be copied here.

      Parameter argsOrName

      Project name or full list of custom arguments for the generator.

      Parameter options

      Command line options passed from the react-native-cli directly. E.g. { version: '0.43.0', template: 'navigation' }

    function run

    run: () => Promise<void>;

      Package Files (2)

      Dependencies (37)

      Dev Dependencies (14)

      Peer Dependencies (1)

      Badge

      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@react-native-community/cli.

      • Markdown
        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@react-native-community/cli)
      • HTML
        <a href="https://www.jsdocs.io/package/@react-native-community/cli"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>