
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@nthachus/react-native-init
Advanced tools
Bundle React Native CLI into a command line tool to create React Native apps
React Native projects initializing CLI, that has been extracted from the official @react-native-community/cli package.
This CLI is independent of
react-nativeand@react-native-community/cli, it just process React Native templates only.
npx)npx react-native-init [options] <projectName>
Initialize a new React Native project named <projectName> in a directory of the same name.
If you have both
yarnandnpminstalled, this CLI will always try to useyarn. You can force usage ofnpmby adding--npmflag to the command.
--version <string>Shortcut for --template react-native@version.
--directory <string>Uses a custom directory instead of <projectName>.
--title <string>Uses a custom app title instead of <projectName>.
--package-name <string>Create project with custom package name for Android and bundle identifier for iOS. The correct package name should:
com.example--skip-installSkip dependencies installation
--npmForce use of npm during initialization
--template <string>Uses a custom template. It should point to a valid package that can be installed with yarn or npm.
The most common options are:
npm package namenpm packGitHub repository (supports username/repo#branch format)Example:
npx react-native-init MyApp --template react-native-template-typescript@6.12.10
npx react-native-init MyApp --template file:///Users/name/template-path
npx react-native-init MyApp --template file:///Users/name/template-name-1.0.0.tgz
npx react-native-init MyApp --template thachnn/react-native-template#v0.71.4
A template is any directory or npm package that contains a template.config.js file in the root:
module.exports = {
// Placeholder used to rename and replace in files package.json, index.json, android/, ios/
placeholderName: 'ProjectName',
// Placeholder used to rename app title inside values.xml and Info.plist
titlePlaceholder: 'Project Display Name',
// Directory with the template which will be copied and processed by this CLI
templateDir: './template',
// Path to script, which will be executed after initialization process
postInitScript: './script.js',
};
You can find example custom template here.
Everything inside this repository is MIT licensed.
FAQs
Bundle React Native CLI into a command line tool to create React Native apps
We found that @nthachus/react-native-init demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.