ReactNative 自动替换Icon和Launch脚本
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2019-05-03 17:08:52 +08:00
.idea edit files 2019-05-03 17:08:52 +08:00
screenshot edit files 2019-05-03 17:08:52 +08:00
.DS_Store edit files 2019-05-03 17:08:52 +08:00
.gitignore Initial commit 2019-05-03 12:38:12 +08:00
icon.py edit files 2019-05-03 17:08:52 +08:00
LICENSE Initial commit 2019-05-03 12:38:12 +08:00
README.md edit files 2019-05-03 17:08:52 +08:00

python-icon-generate

react-native 自动配置替换图标和启动图,支持iOS和Android

文件目录

使用方法

下载 icon.py 文件,放在项目根目录下

方法一:直接 执行脚本,path 为源文件夹路径,包含 icon 图标 和 启动图

python icon.py path

方法二:在项目根目录下创建res文件夹,加入 icon 图标 和 启动图,执行脚本

python icon.py

文件尺寸列表

icon - 1024x1024

ios-launch - 320x480
ios-launch - 640x960
ios-launch - 640x1136
ios-launch - 750x1334
ios-launch - 828x1792
ios-launch - 1125x2436
ios-launch - 1242x2208
ios-launch - 1242x2688

android-launch - 320x480
android-launch - 480x800
android-launch - 720x1280
android-launch - 960x1600
android-launch - 1280x1920

License

MIT