I'm trying to figure out how to change a ReactNative app name. The installed APK on my device is simply "App", with the Android icon. How can I change this?
I've tried changing package.json and re-running react-native upgrade but it didn't update AndroidManifest.xml
first of all create a whole backup of the project including node modules (in order to restore icons/phots ..etc in the future)
for android android/app/src/main/res/values/strings.xml My Android App
for ios Just open it in xCode select project tab general just rename it.
I find that, if you want to change both the app name and the package name (i.e. rename the entire app), the following steps are necessary:
Make sure you don't have anything precious (non-generated, manually copied resources) in the
android/
andios/
subfolders.Delete both the
android/
andios/
folder.Change the
"name"
entry in yourpackage.json
to the new name.Change the app name in both your
index.android.js
andindex.ios.js
:AppRegistry.registerComponent('NewAppName', () => App);
Run
react-native upgrade
to re-generate the platform subfolders.If you have linked resources (like custom fonts etc.) run
react-native link
.If you have other generated resources (like app icons) run the scripts to generate them (e.g.
yo
).Finally, uninstall the old app on each device and run the new one.
If you don't have any thing precious in your android folder, you can delete the folder then run
react-native upgrade
thenreact-native android
. These will recreate AndroidManifest.xml along with necessary files and folders. (Tried on 0.18 in Windows 10)before changing the app name get your code's backup and then , Go to following path in and replace your app name with new app name and change i one more file app.json E:***\android\app\src\main\res\values\strings.xml
app.json
The way I did this for android (hacky, but it works) is just changed the string app_name field in
android/app/src/main/res/values/strings.xml
It will change the name of your installed android app to whatever you put as the value.