AppIcon React Native

时间:2018-04-01 13:23:23

标签: android ios reactjs react-native mobile-development

有人可以帮助我在使用create-react-native-app生成的应用程序中设置AppIcon。没有任何本机代码。
附: AppIcon是您点按以启动应用程序的主要图标。

2 个答案:

答案 0 :(得分:0)

试试这个Android - 转到android文件夹 - > APP-> SRC-> main->水库 - 替换所有midmap文件夹中的ic_launcher图标

答案 1 :(得分:0)

使用create-react-native-app时,您正在使用Expo框架创建新的应用程序。您可以通过app.json配置应用程序来更改应用程序图标。这是文档:https://docs.expo.io/versions/latest/guides/configuration.html#iconlocal-path-or-remote-url-to-an-image-to-use-for-your-apps-icon-we-recommend-that-you-use-a-1024x1024-png-file-this-icon-will-appear-on-the-home-screen-and-within-the-expo-app