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
If you are asking only for Android here is solution
Modify displayName
in /app.json
file
Modify app_name
in android/app/src/main/res/values/strings.xml
then Run these commands one by one
cd android
gradlew clean
cd ..
react-native run-android
first of all create a whole backup of the project including node modules (in order to restore icons/phots ..etc in the future)
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
For Android
Modify displayName in app.json file
Modify app_name in android/app/src/main/res/values/strings.xml
then Run these commands one by one
cd android
./gradlew clean
cd ..
react-native run-android
For iOS
Modify Display Name in Project target (General Tab)
Select your application project as Host Application in Project target for testing (General Tab)
The way I did this for android (hacky, but it works) is just changed the string app_name field in
android/app/src/main/res/values/strings.xml
It will change the name of your installed android app to whatever you put as the value.
for android android/app/src/main/res/values/strings.xml My Android App
for ios Just open it in xCode select project tab general just rename it.