@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.
--bundler
,-b
rspack
| webpack
true
Specify the bundler to use.
--custom-version
,-c
string
latest
Specify the version of @callstack/repack
to install.
--entry
,-e
string
index.js
Path to the main entry point of the React-Native project.
--format
,-f
mjs
| cjs
mjs
Format of the config file.
--verbose
,-v
boolean
false
Enable verbose logging.
--version
Show version number.
--help
Show help information.