create-rn-app-ts-template
v1.1.0
Published
A robust and scalable CLI to scaffold React Native apps with custom templates and automatic Node.js compatibility mapping.
Maintainers
Readme
🧱 Create React Native App With TypeScript Template
A robust CLI tool to quickly scaffold a new React Native project using a custom folder structure and predefined dependencies.
🚀 Features
- CLI Arguments – Pass project name and package manager directly via flags.
- Validation – Automatic validation of project names to ensure compatibility with React Native.
- Prerequisite Checks – Verifies that
gitis installed and Node.js version is appropriate. - Automated Setup – Initializes the official React Native template and then applies custom configurations.
- Flexible Dependencies – Merges dependencies from your template automatically.
- Beautiful Output – Color-coded terminal feedback for better visibility.
- Cleanup – Automatic removal of temporary template clones on success or failure.
📋 Prerequisites
- Node.js >= 18 (Recommended)
- Git installed and available in your PATH
- Yarn (Optional, falls back to
npmif not detected)
📦 Usage
Using npx (Recommended)
npx create-rn-app-ts-template --name MyAwesomeApp --pm yarnPrompt-based (Interactive)
If you omit the flags, the CLI will guide you:
npx create-rn-app-ts-templateCLI Flags
| Flag | Description |
|---|---|
| -n, --name <name> | The name of your new React Native project. |
| -p, --pm <yarn|npm> | Specify the package manager to use. |
| -V, --version | Output the version number. |
| -h, --help | Display help for command. |
Author
Biraj Singha
