如何在react-native中更改应用程序的显示名称 [英] How to change display name of an app in react-native

查看:255
本文介绍了如何在react-native中更改应用程序的显示名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apple有清除说明 IOS应用程序的显示名称,但它们对于本机应用程序没有用,因为文件夹结构不同.如果您有本机应用程序,如何更改显示名称?

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?

推荐答案

iOS

转到ios/<Appname>/Info.plist并编辑$(PRODUCT_NAME)更改显示名称

iOS

Goto ios/<Appname>/Info.plist and edit the $(PRODUCT_NAME) to change the display name

<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>

Android

转到android/app/src/main/res/values/strings.xml并编辑APP_NAME更改名称

Android

Goto android/app/src/main/res/values/strings.xml and edit the APP_NAME to change the name

<string name="app_name">APP_NAME</string>

这篇关于如何在react-native中更改应用程序的显示名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆