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
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>
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
{
"name": "SomethingSomething",
"displayName": "My New App Name"
}