@fruits-chain/react-native-xiaoshu
Version:
🌈 React Native UI library
18 lines (17 loc) • 566 B
TypeScript
import React from 'react';
import type { ColorValue } from 'react-native';
import type { TokensType } from '../../theme/interface';
import type { IconCommonProps } from '../interface';
declare type OutlineRender = (color: ColorValue, props: {
token: TokensType;
disabled?: boolean;
}) => React.ReactNode;
declare type GenIconOption = {
render: OutlineRender;
size?: 'default' | 'small';
};
/**
* 生成一个 Outline 类型的 icon 组件
*/
export declare const genIcon: ({ render, size, }: GenIconOption) => React.FC<IconCommonProps>;
export {};