Skip to content

Instantly share code, notes, and snippets.

@cotyembry
Created April 14, 2017 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cotyembry/be36f438112de792a577169c3c46d337 to your computer and use it in GitHub Desktop.
Save cotyembry/be36f438112de792a577169c3c46d337 to your computer and use it in GitHub Desktop.
A short and sweet example on how to create and link app icons for all iPhone screen sizes with pretty close to one command line call

First up,

Make sure to have everything installed that is needed

npm install -g yo generator-rn-toolbox

To generate your icons, the generator uses ImageMagick. On macOS, you can install it with:

brew install imagemagick

Have a single icon file at the ready somewhere. 200x200px is sufficient.

The from the command line you can run:

yo rn-toolbox:assets --icon <path to your icon>
# For instance
yo rn-toolbox:assets --icon ../icon.png

You will be presented with some prompts, just let it overwrite the asset files that are already present in xcode

thats it

I will let the rest be magic ^_^ the original website tutorial is below https://blog.bam.tech/developper-news/change-your-react-native-app-icons-in-a-single-command-line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment