Version: v5

Init

@callstack/repack-init is a command-line tool that initializes Re.Pack setup in React Native projects or creates a new React Native app with Re.Pack pre-configured.

The tool detects whether it's being run in an existing React Native project or outside of it and decides what to do based on that.

Usage

npm
yarn
pnpm
bun
npx @callstack/repack-init
repack-init

Options

--bundler,-b

  • Type: rspack | webpack
  • Required: true

Specify the bundler to use.

--custom-version,-c

  • Type: string
  • Default: latest

Specify the version of @callstack/repack to install.

--entry,-e

  • Type: string
  • Default: index.js

Path to the main entry point of the React-Native project.

--format,-f

  • Type: mjs | cjs
  • Default: mjs

Format of the config file.

--verbose,-v

  • Type: boolean
  • Default: false

Enable verbose logging.

--version

Show version number.

--help

Show help information.