Skip to main content
deleted 2 characters in body
Source Link
Change the name at \android\app\src\main\res\values\strings.xml, app.jon , and   ./android/app/src/main/java/MainActivity.java 
 **strings.xml** <resources> <string name="app_name">NewAppName</string> </resources> **app.json** { "name": "NewAppName", "displayName": "NewAppName" } **MainActivity.java** @Override protected String getMainComponentName() { return "NewAppName"; } 

Then run these commands on terminal

 cd android ./gradlew clean cd .. npx react-native run-android 
Change the name at \android\app\src\main\res\values\strings.xml app.jon    ./android/app/src/main/java/MainActivity.java 
 **strings.xml** <resources> <string name="app_name">NewAppName</string> </resources> **app.json** { "name": "NewAppName", "displayName": "NewAppName" } **MainActivity.java** @Override protected String getMainComponentName() { return "NewAppName"; } 

Then run these commands on terminal

 cd android ./gradlew clean cd .. npx react-native run-android 
Change the name at \android\app\src\main\res\values\strings.xml, app.jon, and ./android/app/src/main/java/MainActivity.java 
 **strings.xml** <resources> <string name="app_name">NewAppName</string> </resources> **app.json** { "name": "NewAppName", "displayName": "NewAppName" } **MainActivity.java** @Override protected String getMainComponentName() { return "NewAppName"; } 

Then run these commands on terminal

 cd android ./gradlew clean cd .. npx react-native run-android 
added 148 characters in body
Source Link

Change the name at \android\app\src\main\res\values\strings.xml, app.jon, and ./android/app/src/main/java/MainActivity.java

Change the name at \android\app\src\main\res\values\strings.xml app.jon ./android/app/src/main/java/MainActivity.java 
 **strings.xml**  <resources> <string name="NewAppName">My App< <string name="app_name">NewAppName</string>  </resources>    **app.json**  {   "name": "NewAppName",   "displayName": "NewAppName"  }    **MainActivity.java**   @Override   protected String getMainComponentName() {   return "NewAppName";   }   

cd android, ./gradlew clean, cd .., npx react-native run-android Then run these commands on terminal

 cd android ./gradlew clean cd .. npx react-native run-android 

Change the name at \android\app\src\main\res\values\strings.xml, app.jon, and ./android/app/src/main/java/MainActivity.java

**strings.xml** <resources> <string name="NewAppName">My App</string> </resources> **app.json** { "name": "NewAppName", "displayName": "NewAppName" } **MainActivity.java** @Override protected String getMainComponentName() { return "NewAppName"; } 

cd android, ./gradlew clean, cd .., npx react-native run-android

Change the name at \android\app\src\main\res\values\strings.xml app.jon ./android/app/src/main/java/MainActivity.java 
 **strings.xml**  <resources>  <string name="app_name">NewAppName</string>  </resources>    **app.json**  {   "name": "NewAppName",   "displayName": "NewAppName"  }    **MainActivity.java**   @Override   protected String getMainComponentName() {   return "NewAppName";   }   

Then run these commands on terminal

 cd android ./gradlew clean cd .. npx react-native run-android 
Source Link

Change the name at \android\app\src\main\res\values\strings.xml, app.jon, and ./android/app/src/main/java/MainActivity.java

**strings.xml** <resources> <string name="NewAppName">My App</string> </resources> **app.json** { "name": "NewAppName", "displayName": "NewAppName" } **MainActivity.java** @Override protected String getMainComponentName() { return "NewAppName"; } 

cd android, ./gradlew clean, cd .., npx react-native run-android