Quick guide for updating package name in React Native
Hey, React Native community, in this short article let's see how to change the pac...
For further actions, you may consider blocking this person and/or reporting abuse
You sir a legend!!
You saved me as google play store is saying "App package name already exists" and I have to do all the steps mentioned here!!
Thanks a lot!
Glad it helped!
Please add two more things here.
I ran into errors because of these ones.
Thanks!
Worked for most part, but I keep getting a weird warning which I can't seem to figure out.
I am able to get it loaded in Android emulator too.
The warning I get is:
Invalid applications's package name "com.domain.testMe" in AndroidManifest.xml. Read guidelines for setting package name here:.......
Prior to making this change, I didn't get the warning.
Any ideas?
Excellent it helped me a lot, I have a question, after executing "npx react-native run-android" on my android device I get the name of the application "app_name", it does not appear as I put it in app.json displayName: 'App Name', any suggestions?
Great post! Thanks a lot!
Glad it helped
We also need to update moduleName in appDelegate.m file with our package name. RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"new_name"
initialProperties:nil];
And make sure you add exact name as you added in app.json file.
Thank you its helped well....and simple....Goto VSCode -> search & replace(ctrl+shift+h) ->Enter Search for "OLD_PACKAGE_NAME" enter Replace to "NEW_PACKAGE_NAME" press replace all.....
I'm going add to the list to rename inside ios/project_name/AppDelegate.m, since AppName is hard coded.
This is the most helpful so far. Thank you so much!
You saved my life. Thanks :-)
Saved
really hellpful. Thanks!