import React from 'react'; import { IconName } from '../../generated/PreplyDSIcons'; import { type TextProps } from 'react-native'; import { ExpColorName, TextAccent, type IconSize } from '@preply/ds-core'; import { CommonProps } from '../../props/common/types'; export type IconProps = Pick & CommonProps & { name: IconName; size?: IconSize; accent?: TextAccent; /** * If passed along with `accent`, `accent` takes precedence. */ expColor?: ExpColorName; accessibilityLabel?: string; /** * Disable adapting the icon on the platform. The automatically-adapted icons are: * - "Share" and "ShareAndroid": "ShareAndroid" for Android, and "Share" for everything else. * * For all the other icons, `bypassPlatformAdjustment` is ignored. */ bypassPlatformAdjustment?: boolean; /** * Set `color` to `undefined` to inherit the text color from the parent component. */ inheritParentColor?: boolean; }; export declare const iconsWithPlatformAdjustment: Array; /** * Icon component, uses the icon font under the hood. * * Requires `@preply/ds-rn-lib/dist/assets/PreplyDSIcons.ttf` font to be included in the project. * * @example * ```tsx * * ``` */ export declare const Icon: ({ name, size, accent, expColor, allowFontScaling, accessibilityLabel, inheritParentColor, bypassPlatformAdjustment, testID, }: IconProps) => React.JSX.Element; //# sourceMappingURL=Icon.d.ts.map