$ cnpm install @ant-design/icons-react-native
yarn add @ant-design/icons-react-native
react-native link @ant-design/icons-react-native
will copy fonts to ios and android assets folder.
After linking succeeded you need run your app from xcode or android studio or start it from terminal react-native run-ios or react-native run-android
import { IconFill, IconOutline } from "@ant-design/icons-react-native";
After that, you can use antd icons in your React components as simply as this:
<IconFill name="account-book" />
<IconOutline name="account-book" />
interface IconFillProps extends TextProps {
name: FillGlyphMapType;
size?: number;
color?: string;
}
Copyright 2013 - present © cnpmjs.org | Home |