Helper script for creating React Native assets for iOS and Android.
To use the script
- Make sure file path is correct. I have both this repo and digit-mobile on my Desktop. Otherwise, modify
constants.py
accordingly. - Download the 1x, 2x, and 3x assets from Figma. Move them to within the folder.
- Edit
name_map
,name_to_folder
inindex.py
depending on which assets you want to add. - Run
index.py
. This should add the iOS and Android assets todigit-mobile
.
Some quirks:
- The Contents.json files for iOS have trailing spaces that will need to manually fixed.
- You can manually clean up the image files + iOS directory folder from this folder.