android - 如何在 react-native 中更改应用程序的显示名称

标签 android ios react-native

苹果有 clear instructions关于如何更改 IOS 应用程序的显示名称,但它们对于 react-native 应用程序没有用,因为文件夹结构不同。如果您有一个 react-native 应用程序,如何更改显示名称?

最佳答案

iOS

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

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

安卓

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

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

关于android - 如何在 react-native 中更改应用程序的显示名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38580858/

相关文章:

json - React Native - 返回 AsyncStorage 中的所有 JSON 数据?

button - 使用样式化组件在 React Native 中动态样式化按钮

java - setLayoutParams 第二次不起作用

android - 在 Android 中获取 WiFi 代理设置

javascript - 无法读取 null 的属性 'map'

ios - UI 导航栏标题和右栏按钮显示在我拥有的所有 View Controller 中

ios - 休息套件 : How to parse the JSON response to NSDictionary without mapping any entity or class?

android - 我需要能够在SD卡上存储我的应用程序的声音文件

android - 移动应用程序中的审核日志记录

ios - 具有自定义对象原始值的 Swift 枚举