1.0.3 • Published 5 years ago

@rn-components-kit/icon v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Icon

NPM version

English | 中文

Semantic vector graphics. It supports the following features:

:warning: NOTE: Make sure your project has integrated in ART module.

If you encounter the problem like No component found for view with name "ARTXXX", that's because the ART module has not been integrated in your project. You should:

  1. Use Xcode to open your ios project, Libraries -> Add Files to -> node_modules/react-native/Libraries/ART/ART.xcodeproj.
  2. Click the root of project, find Linked Frameworks and Libraries, click + to add libART.a and rebuild the project.
  3. After having rebuilded, re-run command react-native run-ios/android to start your project.

How to use

npm install @rn-components-kit/icon --save
PreviewCode
Demo1 Code
Demo2 Code
Demo3 Code

Props

Reference

Props

style

Allow you to customize style

TypeRequiredDefault
objectno-

color

Determines the icon's color

TypeRequiredDefault
stringno'#333'

size

Determines the icon's size

TypeRequiredDefault
numberno15

type

Icon type, integrated in Ant-Design Preset

TypeRequiredDefault
enum typesyes-

Icon Types

Icon Types