在 React Native 中生成的新 app.json 文件是怎么回事。我最近升级到 0.41.2 并在我的 React 项目目录中发现了一个新的 app.json 文件。有人可以帮我弄清楚这个文件的实际用途吗?
请您参考如下方法:
它用于新的 react-nativeject 命令。正如RN源码中所述:
The eject command re-creates the
androidandiosnative folders. Because native code can be difficult to maintain, this new script allows anapp.jsonto be defined for the project, which is used to configure the native app. Theapp.jsonconfig may contain the following keys:
name- 项目使用的短名称,应为 TitleCasedisplayName- 主屏幕上的应用名称
请随时查看source






