Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #app #react #native #android
ADD COMMENT
Topic
Name
8+9 =