- Validate bundleID to match requirements for Android; [by @strdr4605]
- Change package name for other java files; (by @strdr4605) [by @strdr4605]
- Add support for App's Name using '&' and other special entities;
- Change App's Name and Bundle Identifier in iOS more files (eg.: project.pbxproj, .xcscheme file);
- Add Windows compatibility;
Fork from: https://github.com/junedomingo/react-native-rename
Rename react-native app with just one command
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.
npm install react-native-rename-next -g
Switch to new branch first
better to have back-up
git checkout -b rename-app
react-native-rename-next <newName>
With custom Bundle Identifier (Android only. For iOS, please use Xcode)
react-native-rename-next <newName> -b <bundleIdentifier>
react-native-rename-next "My App"
With custom Bundle Identifier
react-native-rename-next "My App" -b io.github.mayconmesquita.myapp