2

Hi how can I change the package name and the name that will be displayed on the phone in react-native ? I've tried to change the name in app.json and package.json and then delete android and ios folders but when I want to regenerate these folders with react-native upgrade it doesn't work..

Thanks.

3 Answers 3

8

Are you referring to the app's name that'll be displayed on the phone?

For iOS, you can edit the name directly in XCode. See this answer.

For Android, you can edit the app name in strings.xml file located at android/app/src/main/res/values/strings.xml.

<string name="app_name">Your app's name</string>

Sign up to request clarification or add additional context in comments.

Comments

1

1) Install

yarn global add react-native-rename
or
npm install react-native-rename -g

2) Rename your project

react-native-rename "New Project Name"

For more details click here

Comments

0

To change app name and package name, run this command

react-native-rename "MyApp" -b com.mycompany.myapp

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.