App icon

2019-05-03

try to make app icon by using generator-rn-toolbox

outline

this blog introduces how to make app icon by using generator-rn-toolbox on Mac osx

prepare app icon image

prepare 1024x1024px size png image for app icon.

install libraries

install reuqired libraries using below code.

npm install -g yo generator-rn-toolbox
  • generator-rn-toolbox: this is tools for support RN projects. if you want to know details, see official site.(official site: generator-rn-toolbox)
  • yo: this is a library for executing generator-rn-toolbox library.

you should install imagemagick for creating app icons.

brew install imagemagick

how to use

  • execute below code for creating app icons.
yo rn-toolbox:assets --icon <path to your icon>

done! app icons were created and applied to the project. let’s check it by executing RN project

// iOS
react-native run-ios

//android
react-native run-android

if app icons is not applied, remove your app from the simulator or phone and try again.

reference

Buy me a coffeeBuy me a coffee
Posts