Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change App Name In React Native

Tags:

react-native

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

like image 219
Overload119 Avatar asked Jan 14 '16 16:01

Overload119


People also ask

Can I change my react app name?

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.

How do you change the name of an app?

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.

How do you give a space in react-native app name?

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.


1 Answers

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

like image 79
diedu Avatar answered Sep 28 '22 09:09

diedu