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
Changing the title tag You can find the source HTML file in the public folder of the generated project. You may edit the <title> tag in it to change the title from “React App” to anything else.
Go to the app > res > values > strings. xml file as shown in the below image. In this file we have a string name as app_name it is the string resource that holds the current app name which is passed in the Manifest. xml file's application tag inside the label attribute.
Your projects in react-native can't have spaces in them, but you can change the app name directly in the android & ios projects. For android: go to android/app/src/main/res/values/string. xml and change app_name to your desired value.
The generator does not override the strings.xml
file located in android/app/src/main/res/values/
, so you have to change the app_name
variable manually
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With