Apple have clear instructions on how to change the display name of an IOS app, but they are not useful for a react-native app because the folder structure is different. How do you change the display name if you have a react-native app?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
iOS
Goto
ios/<Appname>/Info.plist
and edit the$(PRODUCT_NAME)
to change the display nameAndroid
Goto
android/app/src/main/res/values/strings.xml
and edit theAPP_NAME
to change the nameThere's a file called app.json in the root of your project. Just change the "displayName" then delete ios folder and run "react-native eject".
for ios just add this to
Info.plist
for android edit
strings.xml
file which located inres/values/
res -> values -> strings.xml
Change that and you will have changed your display name of the app.
Inside the manifest file, inside the application tag you will find
You can change this too, if you want to change the display name of your app.
Note: It is always recommended to have values stored in the "values" folder instead of hardcoding the values directly.