How to Change App Name in React Native
- Understanding the Basics of App Naming in React Native
- Changing App Name Using Git Commands
- Renaming the App Using React Native CLI
- Testing Your Changes
- Conclusion
- FAQ

Changing the app name in React Native may seem like a daunting task, but it doesn’t have to be. Whether you’re rebranding or simply want to give your app a fresh identity, knowing how to change the app name is essential.
This tutorial will guide you through the steps necessary to change the app name in React Native effectively. We’ll cover methods that include using Git commands to ensure you can manage your project smoothly. By the end of this guide, you’ll be equipped with all the information you need to rename your app with confidence.
Understanding the Basics of App Naming in React Native
Before diving into the specifics of changing your app’s name, it’s important to understand where the name is defined within your React Native project. The name you see in the app store and on the user’s device is pulled from the app.json
file in your project. However, the app name also needs to be updated in both iOS and Android configurations to ensure consistency across platforms.
Changing App Name Using Git Commands
If you’re using Git for version control, you can streamline the renaming process by following these steps. This method is particularly useful if you’re collaborating with a team or want to keep track of changes made during the renaming process.
-
Open your terminal and navigate to your React Native project directory.
-
Change the app name in the
app.json
file. Open the file and locate thename
anddisplayName
fields. Update these fields with your new app name. -
Commit your changes using Git commands:
git add app.json
git commit -m "Changed app name to [New App Name]"
-
Update Android configurations. Navigate to the
android/app/src/main/res/values/strings.xml
file and change theapp_name
string to your new app name. -
Commit the changes for the Android configuration:
git add android/app/src/main/res/values/strings.xml
git commit -m "Updated Android app name"
-
Update iOS configurations. Open the
ios/[YourProjectName].xcodeproj/project.pbxproj
file and search for the old app name. Replace it with the new name. -
Finally, commit your changes:
git add ios/[YourProjectName].xcodeproj/project.pbxproj
git commit -m "Updated iOS app name"
This method not only changes the app name but also keeps a clear history of the changes made, which is essential for collaboration.
Renaming the App Using React Native CLI
Another way to change your app name is through the React Native CLI. This method is straightforward and involves a few commands that can be run directly in your terminal.
-
Open your terminal and navigate to your project directory.
-
Use the React Native CLI to rename your app. You can run the following command, replacing
[New App Name]
with your desired name:
npx react-native-rename "[New App Name]"
-
Verify the changes. The CLI will automatically update the necessary files, including
app.json
, Android, and iOS configurations. -
Commit your changes:
git add .
git commit -m "Renamed app using React Native CLI"
This method is particularly useful for those who prefer a more automated approach. The CLI handles many of the updates for you, reducing the risk of missing a crucial change.
Testing Your Changes
Once you’ve completed the renaming process, it’s essential to test your app to ensure that everything works as expected.
- Run your application on both iOS and Android:
npx react-native run-android
npx react-native run-ios
-
Check the app icon and name on both platforms to make sure they reflect the new changes.
-
Commit any additional changes if necessary:
git add .
git commit -m "Tested app after renaming"
Testing your app after renaming ensures that users will see the correct name and icon when they download it from the app store. It’s a crucial step that should not be overlooked.
Conclusion
Changing the app name in React Native is a straightforward process that can be accomplished using various methods. Whether you prefer using Git commands for version control or the React Native CLI for automation, both options will effectively update your app’s name across platforms. Remember to test your app after making changes to ensure everything is functioning correctly. With this guide, you now have the tools and knowledge to confidently rename your React Native application.
FAQ
-
How do I change the app name in React Native without using Git?
You can manually update the app name inapp.json
,strings.xml
, and the Xcode project files. -
Will changing the app name affect my app’s functionality?
No, changing the app name will not affect the functionality as long as all references are updated correctly. -
Do I need to update the app icon when changing the app name?
While it’s not mandatory, it’s a good practice to update the app icon to match the new branding. -
Can I change the app name after publishing it?
Yes, you can change the app name after publishing, but you will need to update it in the app store listings as well. -
Is there a risk of losing data when changing the app name?
No, changing the app name does not affect the app’s data or user settings.
Aminul Is an Expert Technical Writer and Full-Stack Developer. He has hands-on working experience on numerous Developer Platforms and SAAS startups. He is highly skilled in numerous Programming languages and Frameworks. He can write professional technical articles like Reviews, Programming, Documentation, SOP, User manual, Whitepaper, etc.
LinkedIn