This is a python script i wrote to generate an assets file to use in a react-native project.
- Download
generate_assets.py
file on your desktop. - Create a folder called
iOS
on desktop. Copy all image assets into this folder. - Open terminal.
- Move to desktop, ie
cd Desktop
. - Fire command:
python generate_assets.py
.
A new file named images.js
will be created on the desktop.