Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

react native change app name

Android
1. Modify displayName in app.json file
2. Modify app_name in android/app/src/main/res/values/strings.xml
3. cd android -> ./gradlew clean
4. cd .. -> react-native run-android
IOS
1. Modify Display Name in Project target (General Tab) 
2. Or in info.plist file string value of CFBundleDisplayName key
Comment

change react native app name

android:
android/app/src/main/res/values/string.xml > change APP_NAME.

ios:
ios/[currentName].xcodeproj/project.pbxproj > change PRODUCT_NAME in debug and release. 
or
go to ios/[currentName]/info.plist
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
Comment

change app name in react native android

To change the name of the react-native Application

1 . Open ./android/app/src/main/java/[multiple folders]/MainActivity.java

 @Override
  protected String getMainComponentName() {
    return "NameOfTheApp";
  }
Open android/app/src/main/res/values/strings.xml

NEW APP NAME

Change Name in App.json and package.json.

4.For clean android project run following command

cd android &&./gradlew clean

Comment

how to set app name in react native ios

{
    "name": "SomethingSomething",
    "displayName": "My New App Name"
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript add 1 day to new date 
Javascript :: indexOf by object key 
Javascript :: replace class js 
Javascript :: how to limit input type max length 
Javascript :: js get random hex color 
Javascript :: object length javascript 
Javascript :: react native text ellipsis 
Javascript :: comment jsx code 
Javascript :: output in javascript 
Javascript :: express redirect 
Javascript :: nl2br javascript 
Javascript :: how to append values to dropdown using jquery 
Javascript :: import file json angular 12 
Javascript :: add property to object conditionally 
Javascript :: you should not use switch outside a router react 
Javascript :: check if string contains substring javascript 
Javascript :: discord.js remove reaction 
Javascript :: javascript to remove duplicates from an array 
Javascript :: moment format date 
Javascript :: react-native run-ios command 
Javascript :: javascript text new line 
Javascript :: javascript absolute path 
Javascript :: outer width jquery 
Javascript :: js convert to fraction 
Javascript :: window.location.href 
Javascript :: javascript sum array values 
Javascript :: react js nesting 
Javascript :: react font awesome 
Javascript :: append array js 
Javascript :: reduce() break 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =