react-native-rename-main

Rename react-native app with just one command main

Usage no npm install needed!

<script type="module">
  import reactNativeRenameMain from 'https://cdn.skypack.dev/react-native-rename-main';
</script>

README

react-native-rename-main NPM version NPM monthly downloads NPM total downloads

Rename react-native main app with just one command

react-native-rename-main

This package assumes that you created your react-native project using react-native init.

Note: This package does not attempt to properly rename build artifacts such as ios/build or Cocoa Pod installation targets. After renaming your project you should clean, build, and reinstall third party dependencies to get it running properly with the new name.

Usage

$ npx react-native-rename-main <newName>

With custom Bundle Identifier (Android only. For iOS, please use Xcode)

$ npx react-native-rename-main <newName> -b <bundleIdentifier>

Example

First, Switch to new branch (optional but recommended)
$ git checkout -b rename-app
Then, Rename your app
$ npx react-native-rename-main "New name"

With custom Bundle Identifier

$ npx react-native-rename-main "New name" -b com.nicolas.main

Local installation

With Yarn:

$ yarn global add react-native-rename-main

With npm:

$ npm install react-native-rename-main -g

Support