Closed bloggerklik closed 1 year ago
Hi @bloggerklik! you can try npx react-native-rename@latest "current_name" -b "bundle_identifier"
that if you want to change bundle/package name on both platforms.
But if you only need to change the package name on android you can use:
npx react-native-rename@latest "current_name" --androidBundleID "new_package_name_here"
and for ios, you can use:
npx react-native-rename@latest "current_name" --iosBundleID "new_bundle_id_here"
Let me know if this helps.
I applied it that way too, but there are "NOT RENAMED" and "NOT UPDATE"s. Should I ignore it? Thanks.
`PS C:\Users\abc\Desktop\abc> npx react-native-rename "abc" -b "abc.abc.abc" ios\abc NOT RENAMED ios\abc\abc.entitlements NOT RENAMED ios\abc\abcRelease.entitlements NOT RENAMED ios\abc-tvOS NOT RENAMED ios\abc-tvOSTests NOT RENAMED ios\abc.xcworkspace NOT RENAMED ios\abcTests NOT RENAMED ios\abcTests\abcTests.m NOT RENAMED ios\abc.xcodeproj NOT RENAMED ios\abc.xcodeproj\xcshareddata\xcschemes\abc-tvOS.xcscheme NOT RENAMED ios\abc.xcodeproj\xcshareddata\xcschemes\abc.xcscheme NOT RENAMED ios\abc-Bridging-Header.h NOT RENAMED ios\Podfile NOT UPDATED (2 matches) ios\abc[AppDelegate.mm](http://appdelegate.mm/) NOT UPDATED (1 match) ios\abc.xcodeproj\project.pbxproj NOT UPDATED (93 matches) ios\abc.xcodeproj\xcshareddata\xcschemes\abc.xcscheme NOT UPDATED (10 matches) ios\abcTests\abcTests.m NOT UPDATED (0 matches) ios\abc.xcodeproj\project.pbxproj NOT UPDATED (52 matches) ios\abcTests\abcTests.m NOT UPDATED (2 matches) ios\abc.xcodeproj\xcshareddata\xcschemes\abc.xcscheme NOT UPDATED (2 matches) ios\abc.xcodeproj\project.pbxproj UPDATED (25 matches) ios\abc.xcodeproj\project.pbxproj UPDATED (0 matches) ios\abc\LaunchScreen.storyboard NOT UPDATED (2 matches) ios\abc\Info.plist UPDATED android\app\src\debug\java\abc\abc\abc RENAMED android\app\src\main\java\abc\abc\abc RENAMED android\app\src\release\java\abc\abc\abc RENAMED android\settings.gradle NOT UPDATED (1 match) android\app\src\main\java\abc\abc\abc\MainActivity.java NOT UPDATED (1 match) android\app\build.gradle NOT UPDATED (0 matches) android\app\build.gradle UPDATED (2 matches) android\app\src\debug\java\abc\abc\abc\ReactNativeFlipper.java UPDATED (1 match) android\app\src\release\java\abc\abc\abc\ReactNativeFlipper.java UPDATED (1 match) android\app\src\main\java\abc\abc\abc\MainActivity.java UPDATED (1 match) android\app\src\main\java\abc\abc\abc\MainApplication.java UPDATED (1 match) android\app\src\main\AndroidManifest.xml NOT UPDATED (0 matches) android\app\src\main\res\values\strings.xml UPDATED index.js NOT UPDATED (0 matches) package.json NOT UPDATED (2 matches) app.json NOT UPDATED (6 matches) Done removing builds.
SUCCESS! 🎉 🎉 🎉 Your app has been renamed to "abc".
If you like this tool, please give it a star on GitHub: https://github.com/junedomingo/react-native-rename`
Yes, just ignore them.
I just want to change the package name. Which command should I use for this?