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

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

问题描述

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

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//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/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天全站免登陆