/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ import React from 'react'; import { IconPack } from './service/type'; type IconsProp = IconPack | IconPack[]; export interface IconRegistryProps { icons: IconsProp; defaultIcons?: string; } export type IconRegistryElement = React.ReactElement; /** * Registers one or more icon packs for later usage in Icon component. * Renders nothing, but should be added as a child of an Application Root. * * @extends React.Component * * @property {IconPack | IconPack[]} icons - Icon packs to register. * @property {string} defaultIcons - A name of an icon pack that is used by default. * * @overview-example Simple Usage * * ``` * import React from 'react'; * import * as eva from '@eva-design/eva'; * import { ApplicationProvider, IconRegistry, Layout, Text, Icon, Button } from '@wirthus/ui-kitten-components'; * import { EvaIconsPack } from '@wirthus/ui-kitten-eva-icons'; // <-- Make sure it is installed. * * const LikeIcon = (props) => ( * * ); * * export default () => ( * <> * * * * Welcome to UI Kitten *