@blue-learn/design-component
v1.0.6
Published
Component Library for Web and Mobile
Downloads
3
Keywords
Readme
design-component
Steps for adding a new SVG Icon
- Copy an icon from the figma file
- Convert it into React Native SVG using https://transform.tools/svg-to-react-native
- Create a new file with the same name as the component in the "/component/src/icon/icon-list"
- Change the width, height and color/fill attributes with
width={props.size} height={props.size} fill={props.color}
- Add the name of the icon in "/schema/src/icon/index.ts"
- Add the name and icon component in "/theme/src/icons/index.ts" (Make sure you don't forget to import the icon from components repo)