Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
/ rn-image-helper Public archive

Helper script for adding iOS and Android assets

Notifications You must be signed in to change notification settings

digit-co/rn-image-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helper script for creating React Native assets for iOS and Android.

To use the script

  1. Make sure file path is correct. I have both this repo and digit-mobile on my Desktop. Otherwise, modify constants.py accordingly.
  2. Download the 1x, 2x, and 3x assets from Figma. Move them to within the folder.
  3. Edit name_map, name_to_folder in index.py depending on which assets you want to add.
  4. Run index.py. This should add the iOS and Android assets to digit-mobile.

Some quirks:

  1. The Contents.json files for iOS have trailing spaces that will need to manually fixed.
  2. You can manually clean up the image files + iOS directory folder from this folder.

About

Helper script for adding iOS and Android assets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages