从https://material.io以react native icons格式下载图标。
react-native-material-icons的Python项目详细描述
React Native Material图标下载程序
从https://material.io以react native icons格式下载图标。
开始
usage: RNMaterialIcons.py [-h] -a ASSET [-n NAME] [-c COLOR] [-t THEME]
[-s SIZE] [-d DIR]
optional arguments:
-h, --help show this help message and exit
-a ASSET, --asset ASSET
Asset name.
-n NAME, --name NAME Asset new name.
-c COLOR, --color COLOR
Asset color (default: white)
-t THEME, --theme THEME
Asset theme (default: round)
-s SIZE, --size SIZE Asset size (default: 24)
-d DIR, --dir DIR Directory where asset will be downloaded (default:
current)
-p PLATFORM, --platform PLATFORM
Assets platform target (default: none)
示例
$ ./RNMaterialIcons.py -a account_cicle -c white -d /home/user/project/icon
$ ./RNMaterialIcons.py -a bookmarks -c black -d /home/user/project/icon -t baseline -n bookmark
$ ./RNMaterialIcons.py -a info -c white -s 48
您可以为每个平台下载相同的图标和不同的大小:
$ ./RNMaterialIcons.py -a check -p android -s 24
$ ./RNMaterialIcons.py -a check -p ios -s 48
这将产生
check.android.png (24dp)
check.ios.png (48dp)
check@1x.android.png (24dp)
check@1x.ios.png (48dp)
check@2x.android.png (24dp)
check@2x.ios.png (48dp)
check@3x.android.png (24dp)
check@3x.ios.png (48dp)
check@4x.android.png (24dp)
check@4x.ios.png (48dp)