Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change display name of an app in react-native

Apple have clear instructions on how to change the display name of an IOS app, but they are not useful for a react-native app because the folder structure is different. How do you change the display name if you have a react-native app?

like image 690
Obromios Avatar asked Jul 26 '16 04:07

Obromios


People also ask

How do I change my App Display name?

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.


Video Answer


2 Answers

iOS

Goto ios/<Appname>/Info.plist and edit the $(PRODUCT_NAME) to change the display name

<key>CFBundleName</key> <string>$(PRODUCT_NAME)</string> 

Android

Goto android/app/src/main/res/values/strings.xml and edit the APP_NAME to change the name

<string name="app_name">APP_NAME</string> 
like image 64
Sriraman Avatar answered Sep 20 '22 17:09

Sriraman


for ios just add this to Info.plist

<key>CFBundleDisplayName</key> <string>APP_NAME</string> 

for android edit strings.xml file which located in res/values/

<string name="app_name">APP_NAME</string> 
like image 32
Ali Faris Avatar answered Sep 20 '22 17:09

Ali Faris