重命名 React Native 项目? [英] Renaming a React Native project?
本文介绍了重命名 React Native 项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有关于重命名 React Native 项目需要更改哪些内容的说明?我有一个类似于 MyAppIOS 的应用程序,我想将它重命名为简单的 MyApp(现在 Android 支持已经结束)
Are there instructions for what needs to be changed in order to rename a React Native project? I have an app called something along the lines of MyAppIOS and I want to rename it to simply MyApp (now that Android support is out)
推荐答案
我为 android 做的方式(hacky,但它有效)只是更改了
The way I did this for android (hacky, but it works) is just changed the string app_name field in
android/app/src/main/res/values/strings.xml
它会将您安装的 Android 应用的名称更改为您输入的任何值.
It will change the name of your installed android app to whatever you put as the value.
这篇关于重命名 React Native 项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文